FortnoxEx.Utils (FortnoxEx v0.1.0) View Source
Link to this section Summary
Functions
Builds an authenticated client. Requires that you already have an access token for the client secret.
Gets an access token given a client secret and an authorization code
Extracts the response body with or without MetaInformation.
Link to this section Functions
Builds an authenticated client. Requires that you already have an access token for the client secret.
The client uses fuse for rate limiting. Rate limiting is bound to the access token of the client. Read more about Fortnox rate limiting here. https://developer.fortnox.se/general/regarding-fortnox-api-rate-limits/
Gets an access token given a client secret and an authorization code
Examples
iex> get_access_token(client_secret, authorization_code)
iex> get_access_token(client_secret, authorization_code) {:error, %{"Code" => 2000721, "Error" => 1, "Message" => "Auktoriseringskoden är redan förbrukad."}}
Extracts the response body with or without MetaInformation.