GetOAuthAccessToken
Fetches the OAuth Access Token, which is used to authenticate and authorize API calls made to NetSuite.
Input
| Name | Type | Description |
| AuthMode | String | The type of authentication mode to use. Select App for getting authentication tokens via a desktop app. Select Web for getting authentication tokens via a Web app.
The allowed values are APP, WEB. The default value is WEB. |
| CallbackUrl | String | The URL the user will be redirected to after authorizing your application. Only needed when the Authmode parameter is Web. |
| Verifier | String | The verifier returned from NetSuite after the user has authorized your app to have access to their data. This value will be returned as a parameter to the callback URL. |
| Scope | String | A space-separated scope of permissions you need the app to have access to. The available values are restlets, rest_webservices. For more details, refer to: https://netsuite.custhelp.com/app/answers/detail/a_id/91339. |
| State | String | Any value that you wish to be sent with the callback. Length of the state parameter must be between 24 and 1024 characters. |
| AuthToken | String | The request token returned from GetOAuthAuthorizationURL. Only useful when AuthMode=WEB. |
| AuthKey | String | The request secret key returned by GetOAuthAuthorizationURL. Only useful when AuthMode=WEB. |
| AuthSecret | String | This field is deprecated. Please use AuthKey going forward. |
Result Set Columns
| Name | Type | Description |
| OAuthAccessToken | String | The OAuth Access Token used for communication with NetSuite. |
| OAuthAccessTokenSecret | String | The OAuth Access Token secret used for communication with NetSuite. |
| OAuthRefreshToken | String | The refresh access token used to refresh your connection to NetSuite. |
| ExpiresIn | String | The remaining lifetime on the access token. |