https://github.com/zilverline/ex_n26
N26 bank API client for Elixir
https://github.com/zilverline/ex_n26
api bank elixir n26
Last synced: 2 months ago
JSON representation
N26 bank API client for Elixir
- Host: GitHub
- URL: https://github.com/zilverline/ex_n26
- Owner: zilverline
- License: mit
- Created: 2018-07-13T09:26:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T10:03:33.000Z (almost 8 years ago)
- Last Synced: 2025-08-10T18:58:28.451Z (9 months ago)
- Topics: api, bank, elixir, n26
- Language: Elixir
- Homepage: https://hex.pm/packages/n26
- Size: 6.84 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# N26
N26 API client for Elixir.
## Installation
The package can be installed by adding `n26` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:n26, "~> 0.1.0"}
]
end
```
Documentation is published on HexDocs and can be found at [https://hexdocs.pm/n26](https://hexdocs.pm/n26).
## Usage
```elixir
iex(1)> token = N26.Auth.get_token("info@example.com", "password")
"fed3b6e1-33e8-48d0-0c0a-79850e380fake"
iex(2)> token |> N26.Account.me
%{
"birthDate" => 563932100000,
"email" => "info@example.com",
"firstName" => "John",
"gender" => "MALE",
"id" => "abc123",
"lastName" => "Doe",
"mobilePhoneNumber" => "+31611111111",
"nationality" => "NLD",
"shadowUserId" => "abc123",
"signupCompleted" => false,
"title" => "",
"transferWiseTermsAccepted" => false
}
```
## Credits
Based on the unofficial API documentation courtesy of [Rots/n26-api](https://github.com/Rots/n26-api)