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
@spec api_base_url(ExQuickbooks.Client.t() | ExQuickbooks.Client.environment()) :: String.t()
Returns the API base URL for a configured client or environment.
@spec oauth_authorization_endpoint() :: String.t()
Returns the OAuth authorization endpoint.
@spec oauth_token_endpoint() :: String.t()
Returns the OAuth token endpoint.
@spec request_headers(ExQuickbooks.Client.t()) :: [{String.t(), String.t()}]
Returns default JSON headers and includes bearer auth when an access token exists.