N26 API client for Elixir.
The package can be installed by adding n26
to your list of dependencies in mix.exs
:
def deps do
[
{:n26, "~> 0.1.0"}
]
end
Documentation is published on HexDocs and can be found at https://hexdocs.pm/n26.
iex(1)> token = N26.Auth.get_token("[email protected]", "password")
"fed3b6e1-33e8-48d0-0c0a-79850e380fake"
iex(2)> token |> N26.Account.me
%{
"birthDate" => 563932100000,
"email" => "[email protected]",
"firstName" => "John",
"gender" => "MALE",
"id" => "abc123",
"lastName" => "Doe",
"mobilePhoneNumber" => "+31611111111",
"nationality" => "NLD",
"shadowUserId" => "abc123",
"signupCompleted" => false,
"title" => "",
"transferWiseTermsAccepted" => false
}
Based on the unofficial API documentation courtesy of Rots/n26-api