You are here

function _drush_salesforce_drush_get_api in Salesforce Suite 7.3

Wrapper around salesforce_get_api().

If salesforce_get_api() does not return a connection to Salesforce, this function can prompt the user for username/password to obtain a new token.

@TODO implement this function

8 calls to _drush_salesforce_drush_get_api()
drush_salesforce_sf_create_object in ./salesforce.drush.inc
Create a Salesforce object available to the logged-in user.
drush_salesforce_sf_describe_object in ./salesforce.drush.inc
Describes a Salesforce object.
drush_salesforce_sf_execute_query in ./salesforce.drush.inc
Execute a SOQL query.
drush_salesforce_sf_list_objects in ./salesforce.drush.inc
List Salesforce objects.
drush_salesforce_sf_list_resources in ./salesforce.drush.inc
List the resources available for the specified API version.

... See full list

File

./salesforce.drush.inc, line 221
Drush integration for Salesforce.

Code

function _drush_salesforce_drush_get_api() {
  if ($salesforce = salesforce_get_api()) {
    return $salesforce;
  }
}