this class provides the REST client API for communication with NetSuite servers
More...
|
|
const | DefaultAuthUrl = "https://{{account_id}}.netsuite.com/app/login/oauth2/authorize.nl" |
| | Default authorization request URL.
|
| |
|
const | DefaultGrantType = "authorization_code" |
| | Default OAuth2 grant type.
|
| |
|
const | DefaultLogoutUrl = "https://{{account_id}}.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/logout" |
| | Default token logout / deauthorize URL.
|
| |
|
const | DefaultNetSuitePingHeaders = ... |
| | Default NetSuite ping headers.
|
| |
|
const | DefaultNetSuitePingMethod = "GET" |
| | Default NetSuite ping method.
|
| |
|
const | DefaultOAuth2Scopes = ("rest_webservices",) |
| | Default OAuth2 scopes.
|
| |
|
const | DefaultOptions = ... |
| | Default constructor options.
|
| |
|
const | DefaultTokenUrl = "https://{{account_id}}.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token" |
| | Default token request URL.
|
| |
|
const | DefaultUrl = "https://{{account_id}}.suitetalk.api.netsuite.com/services/rest/record" |
| | Default REST URL.
|
| |
|
|
| checkLogin (*reference< hash< auto > > info) |
| | Checks if a login is necessary; if so, then the login is performed.
|
| |
| *hash< auto > | getUpdateOptionsAfterLogin (hash< auto > h) |
| | Returns options to update after an OAuth2 login.
|
| |
| hash< auto > | oauth2Auth (hash< auto > login, *reference< hash< auto > > info, *bool refresh) |
| | Perform OAuth2 authentication.
|
| |
| | setOAuth2LoginInfo (hash< auto > h) |
| | Sets options from the OAuth2 login response on the local object.
|
| |
this class provides the REST client API for communication with NetSuite servers
You must use an OAuth2 token by setting the token and oauth2_refresh_token options; the following options need to be set as well:
oauth2_client_id: the OAuth2 client ID
oauth2_client_secret: the OAuth2 client secret
Then an external program has to guide the user through using the authorization_grant flow to get a token to use; this module does not implement that flow.