SwedbankpayCheckout (swedbankpay_checkout v0.2.2) View Source
Root module for creating clients.
Link to this section Summary
Functions
Initializes a Tesla http client. Sets middlewares for base_url, authorization, user-agent: tesla and camelCase <> snake_case conversion as such these don't need to be included in additional_middleware
Link to this section Functions
Link to this function
create_client(base_url, access_token, adapter, additional_middleware \\ [])
View SourceSpecs
create_client(String.t(), String.t(), Tesla.Client.adapter(), [ Tesla.Client.middleware() ]) :: Tesla.Client.t()
Initializes a Tesla http client. Sets middlewares for base_url, authorization, user-agent: tesla and camelCase <> snake_case conversion as such these don't need to be included in additional_middleware
adapter should be set to use a proper underlying http library, like mint or hackney
By viewing this source it should be simple to create a custom tesla client.
Specs
live_base_url() :: String.t()
Specs
test_base_url() :: String.t()