35 const ProviderInfo = <DataProviderInfo>{
36 "type":
"SalesforceRestDataProvider",
37 "supports_children": True,
38 "constructor_options": ConstructorOptions,
39 "children_can_support_apis": False,
40 "children_can_support_records": True,
41 "children_can_support_observers": False,
45 const ConstructorOptions = {
46 "client_id": <DataProviderOptionInfo>{
47 "type": AbstractDataProviderType::get(StringType),
48 "desc":
"the Salesforce.com consumer key",
51 "client_secret": <DataProviderOptionInfo>{
52 "type": AbstractDataProviderType::get(StringType),
53 "desc":
"the Salesforce.com consumer secret",
56 "username": <DataProviderOptionInfo>{
57 "type": AbstractDataProviderType::get(StringType),
58 "desc":
"the Salesforce.com account username",
61 "password": <DataProviderOptionInfo>{
62 "type": AbstractDataProviderType::get(StringType),
63 "desc":
"the Salesforce.com account password",
66 "salesforcerestclient": <DataProviderOptionInfo>{
67 "type": AbstractDataProviderType::get(
new Type(
"SalesforceRestClient")),
68 "desc":
"the SalesforceRestClient object",
70 "api": <DataProviderOptionInfo>{
71 "type": AbstractDataProviderType::get(StringType),
72 "desc":
"the Salesforce.com API version to use (\"auto\" = latest version available)",
74 "oauth_url_auth": <DataProviderOptionInfo>{
75 "type": AbstractDataProviderType::get(StringType),
76 "desc":
"URL for logging in, overrides the default value",
78 "oauth_url_token": <DataProviderOptionInfo>{
79 "type": AbstractDataProviderType::get(StringType),
80 "desc":
"URL for token acquisition, overrides the default value, used when logging in",
82 "oauth_url_revoke": <DataProviderOptionInfo>{
83 "type": AbstractDataProviderType::get(StringType),
84 "desc":
"URL for token revocation, overrides the default value, used when logging out",
86 "salesforcerestclient_options": <DataProviderOptionInfo>{
87 "type": AbstractDataProviderType::get(AutoHashType),
88 "desc":
"options to the SalesforceRestClient constructor; only used if a SalesforceRestClient object "
89 "is created for a call",
95 "client_id":
"SALESFORCE_CONSUMER_KEY",
96 "client_secret":
"SALESFORCE_CONSUMER_SECRET",
97 "username":
"SALESFORCE_USER",
98 "password":
"SALESFORCE_PASS",
102 const HttpMethods = {
*string getDesc()
Returns the data provider description.
*AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
hash< DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
static *hash< auto > getClientOptions(*hash< auto > copts)
Returns options for the SalesforceRestClient.
constructor(*hash< auto > options)
Creates the object from constructor options.
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
SalesforceRestClient rest
The REST client object for API calls.
Definition: SalesforceRestDataProvider.qc.dox.h:32
*list< hash< DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
string getName()
Returns the data provider name.
constructor(SalesforceRestClient rest)
Creates the object from the arguments.
Qore SalesforceRestDataProvider module definition.
Definition: SalesforceRestDataProvider.qc.dox.h:26