GetOAuthAccessToken
Fetches the OAuth Access Token, which is used to authenticate and authorize API calls. Only used for the AzureAD AuthScheme.
Input
| Name | Type | Description |
| AuthMode | String | Specifies the authentication flow. Choose 'APP' for desktop-based apps or 'WEB' for browser-based apps using OAuth.
The allowed values are APP, WEB. The default value is APP. |
| CallbackUrl | String | The URL the user will be redirected to after authorizing your application. This value must match the Callback URL you specified when creating a custom OAuth app. |
| Verifier | String | The verifier code returned after the user has authorized your app to have access to their data. Upon running GetOAuthAuthorizationURL and visiting the URL that it displays, this value will be shown as 'code' parameter in the browser's URL. |
Result Set Columns
| Name | Type | Description |
| OAuthRefreshToken | String | A long-lived token used to request a new access token after the current one expires. |
| OAuthAccessToken | String | The short-lived token used to authenticate API requests to Intacct. |
| ExpiresIn | String | The number of seconds until the access token expires. A value of -1 indicates the token does not expire. |