Upstream v1.2.3 Upstream.B2.Account.Authorization View Source
Handles Authorization of B2 account.
Link to this section Summary
Functions
Callback implementation for Upstream.B2.Base.body/1
Authorize#call function will make a call to the api and authorize based on the account_id, and application_key passed in from the config
Callback implementation for Upstream.B2.Base.header/1
Callback implementation for Upstream.B2.Base.url/1
Link to this section Types
Link to this section Functions
Callback implementation for Upstream.B2.Base.body/1
.
Link to this function
call(options \\ [])
View Source
call(Keyword.t()) :: {:ok | :error, %Upstream.B2.Account.Authorization{absolute_minimum_part_size: term(), account_id: term(), api_url: term(), authorization_token: term(), download_url: term(), recommended_part_size: term()} | struct()}
Authorize#call function will make a call to the api and authorize based on the account_id, and application_key passed in from the config.
config :upstream, Upstream,
account_id:
Callback implementation for Upstream.B2.Base.header/1
.
Callback implementation for Upstream.B2.Base.url/1
.