function salesforce_get_api in Salesforce Suite 7.3
Wrapper around the API constructor passing consume key and secret.
Return value
Salesforce Returns a Salesforce class object.
14 calls to salesforce_get_api()
- salesforce_mappings_access in modules/
salesforce_mapping/ salesforce_mapping.module - Access callback for managing Salesforce mappings.
- salesforce_mapping_object_form_validate in modules/
salesforce_mapping/ includes/ salesforce_mapping_object.admin.inc - Implements hook_form_validate().
- salesforce_mapping_object_property_salesforce_url_get in modules/
salesforce_mapping/ salesforce_mapping.module - Callback to get $salesforce_mapping_object->salesforce_url.
- salesforce_oauth_callback in ./
salesforce.module - Callback for the oauth redirect URI.
- salesforce_pull in modules/
salesforce_pull/ salesforce_pull.module - Callback for the standard pull process used by webhooks and cron.
File
- ./
salesforce.module, line 353 - API and module for Salesforce integration.
Code
function salesforce_get_api() {
return new Salesforce(variable_get('salesforce_consumer_key', ''), variable_get('salesforce_consumer_secret', ''));
}