120 const OAuth2DefaultGrantType =
"none";
123 const OAuth2AuthUriPathSuffix =
"/oauth_auth.do";
126 const OAuth2TokenUriPathSuffix =
"/oauth_token.do";
129 const DefaultApiVersion =
"now";
132 const RequestUriPathPrefix =
"/api/";
135 const DefaultApiKeyHeader =
"x-sn-apikey";
212 hash<auto>
sendAndDecodeResponse(*data body,
string m,
string path, hash<auto> hdr, *reference<hash<auto>> info, *softbool decode_errors, *
string assume_content_type, *
string shdr, *code signer);
272 constructor(
string name,
string description,
string url, hash<auto> attributes = {}, hash<auto> options = {})
constructor(hash< auto > opts, *softbool do_not_connect)
creates the object with the given options
static hash< auto > getOptions(hash< auto > opts)
returns options for ServiceNowRestClient::ServiceNowRestClient::constructor()
string getApi()
returns the ServiceNow REST API version currently in use
hash< auto > sendAndDecodeResponse(*data body, string m, string path, hash< auto > hdr, *reference< hash< auto > > info, *softbool decode_errors, *string assume_content_type, *string shdr, *code signer)
sends the outgoing HTTP message and recodes the response to data
Class for ServiceNow REST connections; returns ServiceNowRestClient objects.
Definition ServiceNowRestClient.qm.dox.h:229
const DefaultServiceNowPingMethod
Default ServiceNow ping method.
Definition ServiceNowRestClient.qm.dox.h:237
const DefaultServiceNowPingPath
Default ServiceNow ping path (from the API root)
Definition ServiceNowRestClient.qm.dox.h:240
Qore::AbstractPollOperation startPollConnect(*Logger::LoggerInterface logger)
Called to start a non-blocking polling ping operation on the ServiceNow REST server.
string getType()
returns "snrests"
const OAuth2Options
Maps ServiceNow REST options to standard options.
Definition ServiceNowRestClient.qm.dox.h:252
constructor(string name, string description, string url, hash< auto > attributes={}, hash< auto > options={})
creates the ServiceNowRestConnection object
hash< auto > getOAuth2Options()
Returns OAuth2 options in a standard format.
checkAuthCodeFeature()
Sets the auth code feature if supported.
const DefaultServiceNowPingHeaders
Default ServiceNow ping headers.
Definition ServiceNowRestClient.qm.dox.h:244
constructor(hash< auto > config, *hash< auto > attr)
creates the ServiceNowRestConnection object
DataProvider::AbstractDataProvider getDataProvider(*hash< auto > constructor_options)
returns a data provider object for this connection
string getOAuth2OptionName(string opt)
Returns the OAuth2 option name for this connection.
const OAuth2AuthRequestOptions
options required to support the OAuth2 authorization code grant flow
Definition ServiceNowRestClient.qm.dox.h:248
setChildCapabilities()
Sets child data provider capabilities.
const OAuth2StandardToServiceNowOptionMap
Maps standard option names to ServiceNow REST option names.
Definition ServiceNowRestClient.qm.dox.h:256
ServiceNowRestClient getImpl(bool connect=True, *hash< auto > rtopts)
returns a ServiceNowRestClient object
bool hasDataProvider()
returns True as this connection returns a data provider with the getDataProvider() method
const ConnectionScheme
Connection entry info.
Definition ServiceNowRestClient.qm.dox.h:233
*string getAppName()
Returns the data provider application name this connection serves, if any.
const OAuth2DifferentOptionMap
Different OAuth2 option map; standard name => extern name.
Definition ServiceNowRestClient.qm.dox.h:259
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
the ServiceNowRestClient namespace contains all the objects in the ServiceNowRestClient module
Definition ServiceNowRestClient.qm.dox.h:102