Blazay v1.1.3 Blazay.B2.Account.Authorization View Source

Handles Authorization of B2 account.

Link to this section Summary

Functions

Callback implementation for Blazay.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 Blazay.B2.Base.header/1

Callback implementation for Blazay.B2.Base.url/1

Link to this section Types

Link to this type t() View Source
t() :: %Blazay.B2.Account.Authorization{absolute_minimum_part_size: integer, account_id: String.t, api_url: String.t, authorization_token: String.t, download_url: String.t, recommended_part_size: integer}

Link to this section Functions

Callback implementation for Blazay.B2.Base.body/1.

Link to this function call(options \\ []) View Source
call(Keyword.t) :: {:ok | :error, %Blazay.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 :blazay, Blazay, account_id: , application_key:

Callback implementation for Blazay.B2.Base.header/1.