You are here

public function RestClient::listResources in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::listResources()
  2. 8.3 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 580

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));
}