ExQuickbooks.Config (ex_quickbooks v0.9.0)

Copy Markdown View Source

Shared QuickBooks configuration helpers.

Summary

Functions

Returns the API base URL for a configured client or environment.

Returns the OAuth authorization endpoint.

Returns the OAuth token endpoint.

Returns default JSON headers and includes bearer auth when an access token exists.

Functions

api_base_url(arg1)

Returns the API base URL for a configured client or environment.

oauth_authorization_endpoint()

@spec oauth_authorization_endpoint() :: String.t()

Returns the OAuth authorization endpoint.

oauth_token_endpoint()

@spec oauth_token_endpoint() :: String.t()

Returns the OAuth token endpoint.

request_headers(client)

@spec request_headers(ExQuickbooks.Client.t()) :: [{String.t(), String.t()}]

Returns default JSON headers and includes bearer auth when an access token exists.