95 const DefaultUrl =
"https://{{account_id}}.suitetalk.api.netsuite.com/services/rest/record";
98 const DefaultAuthUrl =
"https://{{account_id}}.netsuite.com/app/login/oauth2/authorize.nl";
101 const DefaultGrantType =
"authorization_code";
104 const DefaultTokenUrl =
"https://{{account_id}}.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/token";
107 const DefaultLogoutUrl =
"https://{{account_id}}.suitetalk.api.netsuite.com/services/rest/auth/oauth2/v1/logout";
110 const DefaultOAuth2Scopes = (
"rest_webservices",);
113 const DefaultOptions = ...;
117 const DefaultNetSuitePingMethod=
"GET";
120 const DefaultNetSuitePingHeaders = ...;
167 hash<auto>
oauth2Auth(hash<auto> login, *reference<hash<auto>> info, *
bool refresh);
constructor(hash< auto > opts, *softbool do_not_connect)
creates the object with the given options
hash< auto > oauth2Auth(hash< auto > login, *reference< hash< auto > > info, *bool refresh)
Perform OAuth2 authentication.
string account_id
NetSuite account ID; can be auto-discovered.
Definition NetSuiteRestClient.qm.dox.h:125
checkLogin(*reference< hash< auto > > info)
Checks if a login is necessary; if so, then the login is performed.
string oauth2_logout_url
The OAuth2 logout / token deauthorization URL.
Definition NetSuiteRestClient.qm.dox.h:128
setOAuth2LoginInfo(hash< auto > h)
Sets options from the OAuth2 login response on the local object.
static hash< auto > getOptions(hash< auto > opts)
returns options for NetSuiteRestClient::NetSuiteRestClient::constructor()
*hash< auto > getUpdateOptionsAfterLogin(hash< auto > h)
Returns options to update after an OAuth2 login.
Class for NetSuite REST connections; returns NetSuiteRestClient objects.
Definition NetSuiteRestClient.qm.dox.h:195
NetSuiteRestClient getImpl(bool connect=True, *hash< auto > rtopts)
returns a NetSuiteRestClient object
setRealUrl(*string url)
Called by the constructor to set the real URL.
string getTokenUrl(*bool allow_relative)
Returns the OAuth2 token URL or throws an exception if not set.
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
DataProvider::AbstractDataProvider getDataProvider(*hash< auto > constructor_options)
returns a data provider object for this connection
hash< auto > getOAuth2Options()
Return OAuth2 options.
constructor(hash< auto > config, *hash< auto > attr)
creates the NetSuiteRestConnection object
setChildCapabilities()
Sets child data provider capabilities.
*string getAppName()
Returns the data provider application name this connection serves, if any.
string getUrlOption(string opt, *bool allow_relative)
Returns the value of a URL option or throws an exception if not set.
bool hasDataProvider()
returns True as this connection returns a data provider with the getDataProvider() method
string getAuthUrl(*bool allow_relative)
Returns the OAuth2 authorization URL or throws an exception if not set.
const DefaultUrl
Default URL.
Definition NetSuiteRestClient.qm.dox.h:199
const ConnectionScheme
Connection entry info.
Definition NetSuiteRestClient.qm.dox.h:202
string getType()
returns "netsuite"
the NetSuiteRestClient namespace contains all the objects in the NetSuiteRestClient module
Definition NetSuiteRestClient.qm.dox.h:81