301 "oauth_url_auth":
"https://login.salesforce.com/services/oauth2/authorize",
302 "oauth_url_token":
"https://login.salesforce.com/services/oauth2/token",
303 "oauth_url_revoke":
"https://login.salesforce.com/services/oauth2/revoke",
308 const DefaultSendEncoding =
"gzip";
311 const RequiredOptions = ...;
315 const AsyncDataloadNs =
"http://www.force.com/2009/06/asyncapi/dataload";
318 const JobInfoAttributes = ...;
443 hash<auto>
patch(
string path,
auto body, *reference<hash<auto>> info, *hash<auto> hdr);
490 hash<auto>
doRequest(
string m,
string path,
auto body, *reference<hash<auto>> info, softbool decode_errors = True, *hash<auto> hdr);
539 hash<auto>
doBulkRequest(
string m,
string path,
auto body, *reference<hash<auto>> info, softbool decode_errors = True, *hash<auto> hdr);
585 hash<auto>
bulkGet(
string path,
auto body, *reference<hash<auto>> info, *hash<auto> hdr);
631 hash<auto>
bulkPost(
string path,
auto body, *reference<hash<auto>> info, *hash<auto> hdr);
666 hash<auto>
bulkJobCreate(
string operation,
string object,
string job_content_type, *reference<hash<auto>> info, *hash<auto> hdr);
701 hash<auto>
bulkJobAddBatch(
string jobid, data batch_data,
string job_content_type, *reference<hash<auto>> info, *hash<auto> hdr);
730 hash<auto>
bulkJobClose(
string jobid, *reference<hash<auto>> info, *hash<auto> hdr);
839 "cls": Class::forName(
"SalesforceRestConnection"),
840 "options": RestConnection::ConnectionScheme.options + {
841 "api": <ConnectionOptionInfo>{
843 "desc":
"the Salesforce.com API to use; use `auto` (the default) to use the latest API version",
846 "client_id": <ConnectionOptionInfo>{
848 "desc":
"the Salesforce.com \"consumer key\" for the Connected App",
850 "client_secret": <ConnectionOptionInfo>{
852 "desc":
"the Salesforce.com \"consumer secret\" for the Connected App",
855 "oauth_url_auth": <ConnectionOptionInfo>{
857 "desc":
"the OAuth authorization URL",
860 "oauth_url_token": <ConnectionOptionInfo>{
862 "desc":
"the OAuth token URL",
865 "oauth_url_revoke": <ConnectionOptionInfo>{
867 "desc":
"the OAuth logout / revoke token URL",
870 "password": <ConnectionOptionInfo>{
872 "desc":
"the ServiceNow password (will override any password in the URL)",
875 "username": <ConnectionOptionInfo>{
877 "desc":
"the ServiceNow username (will override any username in the URL)",
882 "required_options":
"client_id,client_secret",
894 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 (which include the following mandatory options for Salesfor...
static string getBulkDate(date d)
returns a date string for use with Salesforce.com Bulk REST API requests
hash< auto > doBulkRequest(string m, string path, auto body, *reference< hash< auto > > info, softbool decode_errors=True, *hash< auto > hdr)
sends a Bulk API REST request to the Salesforce.com server using "rawxml" serialization and returns t...
login(*reference< hash< auto > > info)
logs in to Salesforce.com with the credentials provided in the constructor()
hash< auto > bulkJobAddBatch(string jobid, data batch_data, string job_content_type, *reference< hash< auto > > info, *hash< auto > hdr)
add a batch to a job using the Bulk REST API
static hash getOptions(*hash< auto > opts)
returns options for the RestClient::constructor()
static string getGmtDate(date d)
returns a date string in GMT for use in Salesforce.com requests
string password
Salesforce.com password.
Definition: SalesforceRestClient.qm.dox.h:347
loginIntern(*reference< hash > info)
performs authentication and authorization with Salesforce.com using the OAuth2 authorization URL
hash< auto > bulkJobCreate(string operation, string object, string job_content_type, *reference< hash< auto > > info, *hash< auto > hdr)
creates a Salesforce.com batch job and returns the job information as a hash
string token
Salesforce.com token.
Definition: SalesforceRestClient.qm.dox.h:335
string oauth_url_revoke
Salesforce.com OAuth2 Revoke Token URL.
Definition: SalesforceRestClient.qm.dox.h:329
*string getToken()
returns the access token
string api_used
Salesforce.com REST API version currently in use.
Definition: SalesforceRestClient.qm.dox.h:353
string username
Salesforce.com username.
Definition: SalesforceRestClient.qm.dox.h:344
logout(*reference< hash< auto > > info)
logs out of Salesforce.com by revoking the access token
hash< auto > api_hash
hash of APIs retrieved from GET /services/data; keyed by API version string; values: "label",...
Definition: SalesforceRestClient.qm.dox.h:356
hash< auto > bulkGet(string path, auto body, *reference< hash< auto > > info, *hash< auto > hdr)
sends an HTTP GET request to the REST server using the Salesforce.com Bulk REST API and returns the r...
checkClientOptions(hash< auto > opts)
verifies that the options passed match the configured options
string client_secret
Salesforce.com "consumer secret".
Definition: SalesforceRestClient.qm.dox.h:341
string client_id
Salesforce.com "consumer key".
Definition: SalesforceRestClient.qm.dox.h:338
hash< auto > bulkPost(string path, auto body, *reference< hash< auto > > info, *hash< auto > hdr)
sends an HTTP POST request to the REST server using the Salesforce.com Bulk REST API and returns the ...
string getApi()
returns the Salesforce.com REST API version currently in use
Mutex m()
Mutex for token acquisition.
const Defaults
defaults for direct member values
Definition: SalesforceRestClient.qm.dox.h:300
string oauth_url_auth
Salesforce.com OAuth2 Authorization URL.
Definition: SalesforceRestClient.qm.dox.h:323
string api
Salesforce.com REST API version to be used ("auto" = latest version)
Definition: SalesforceRestClient.qm.dox.h:350
hash< auto > bulkJobClose(string jobid, *reference< hash< auto > > info, *hash< auto > hdr)
sends a Bulk REST API job close POST request to the server and returns the deserialized result messag...
hash< auto > doRequest(string m, string path, auto body, *reference< hash< auto > > info, softbool decode_errors=True, *hash< auto > hdr)
sends an HTTP request to the REST server and returns the response; performs an implicit login to Sale...
hash< auto > patch(string path, auto body, *reference< hash< auto > > info, *hash< auto > hdr)
sends an HTTP PATCH request to the Salesforce.com REST server and returns the response; performs an i...
string oauth_url_token
Salesforce.com OAuth2 Get Token URL.
Definition: SalesforceRestClient.qm.dox.h:326
class for Salesforce.com REST connections; returns SalesforceRestClient::SalesforceRestClient objects
Definition: SalesforceRestClient.qm.dox.h:834
SalesforceRestClient getImpl(bool connect=True, *hash< auto > rtopts)
returns a SalesforceRestClient::SalesforceRestClient object
constructor(string name, string description, string url, hash< auto > attributes={}, hash< auto > options={})
creates the SalesforceRestConnection connection object
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
string getType()
returns "sfrests"
const ConnectionScheme
Connection entry info.
Definition: SalesforceRestClient.qm.dox.h:838
setChildCapabilities()
Sets child data provider capabilities.
bool hasDataProvider()
returns True as this connection returns a data provider with the getDataProvider() method
DataProvider::AbstractDataProvider getDataProvider()
returns a data provider object for this connection
const BulkJobZipCsv
Salesforce.com bulk job "ZIP_CSV" content type.
Definition: SalesforceRestClient.qm.dox.h:223
const BulkJobCsv
Definition: SalesforceRestClient.qm.dox.h:214
const BulkJobXml
Salesforce.com bulk job "XML" content type.
Definition: SalesforceRestClient.qm.dox.h:220
const BulkJobJson
Salesforce.com bulk job "JSON" content type.
Definition: SalesforceRestClient.qm.dox.h:217
const BulkJobZipJson
Salesforce.com bulk job "ZIP_JSON" content type.
Definition: SalesforceRestClient.qm.dox.h:226
const BulkJobZipXml
Salesforce.com bulk job "ZIP_XML" content type.
Definition: SalesforceRestClient.qm.dox.h:229
const BulkJobQuery
Definition: SalesforceRestClient.qm.dox.h:179
const BulkJobUpsert
Salesforce.com bulk job "upsert" operation.
Definition: SalesforceRestClient.qm.dox.h:188
const BulkJobDelete
Salesforce.com bulk job "delete" operation.
Definition: SalesforceRestClient.qm.dox.h:191
const BulkJobInsert
Salesforce.com bulk job "insert" operation.
Definition: SalesforceRestClient.qm.dox.h:182
const BulkJobUpdate
Salesforce.com bulk job "update" operation.
Definition: SalesforceRestClient.qm.dox.h:185
the SalesforceRestClient namespace contains all the objects in the SalesforceRestClient module
Definition: SalesforceRestClient.qm.dox.h:174
const BulkJobContentTypes
a hash of Salesforce.com bulk job content types; keys are Salesforce.com Bulk REST API Job Content Ty...
Definition: SalesforceRestClient.qm.dox.h:241
const BulkJobOperations
a hash of Salesforce.com bulk job operations; keys are Salesforce.com Bulk REST API Job Operations
Definition: SalesforceRestClient.qm.dox.h:202