You are here

public function RestClient::listResources in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::listResources()
  2. 5.0.x src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::listResources()

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

Return value

\Drupal\salesforce\Rest\RestResponseResources The response.

Overrides RestClientInterface::listResources

1 method overrides RestClient::listResources()
TestRestClient::listResources in src/Tests/TestRestClient.php
Prevent an API call out here.

File

src/Rest/RestClient.php, line 815

Class

RestClient
Objects, properties, and methods to communicate with the Salesforce REST API.

Namespace

Drupal\salesforce\Rest

Code

public function listResources() {
  return new RestResponseResources($this
    ->apiCall('', [], 'GET', TRUE));
}