An open API service indexing awesome lists of open source software.

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

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)