You are here

public function Salesforce::listResources in Salesforce Suite 7.3

Return a list of available resources for the configured API version.

Return value

array Associative array keyed by name with a URI value.

File

includes/salesforce.inc, line 749
Objects, properties, and methods to communicate with the Salesforce REST API

Class

Salesforce
Ability to authorize and communicate with the Salesforce REST API.

Code

public function listResources() {
  $resources = $this
    ->apiCall('');
  foreach ($resources as $key => $path) {
    $items[$key] = $path;
  }
  return $items;
}