OAuth 2 helpers for QuickBooks Online.
Summary
Functions
Builds the QuickBooks authorization URL.
Exchanges an authorization code for QuickBooks OAuth tokens.
Refreshes QuickBooks OAuth tokens using the latest refresh token.
Functions
@spec authorization_url(keyword()) :: {:ok, String.t()} | {:error, ExQuickBooks.Error.t()}
Builds the QuickBooks authorization URL.
@spec exchange_code(keyword()) :: {:ok, ExQuickBooks.Token.t()} | {:error, ExQuickBooks.Error.t()}
Exchanges an authorization code for QuickBooks OAuth tokens.
@spec refresh_tokens(keyword()) :: {:ok, ExQuickBooks.Token.t()} | {:error, ExQuickBooks.Error.t()}
Refreshes QuickBooks OAuth tokens using the latest refresh token.