public function RestClient::getApiUsage in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::getApiUsage()
- 5.0.x src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::getApiUsage()
Get the api usage, as returned in the most recent API request header.
Return value
string|null Returns the complete Sforce-Limit-Info header from a recent API request. e.g. "api-usage=123/45678"
Overrides RestClientInterface::getApiUsage
File
- src/
Rest/ RestClient.php, line 387
Class
- RestClient
- Objects, properties, and methods to communicate with the Salesforce REST API.
Namespace
Drupal\salesforce\RestCode
public function getApiUsage() {
return $this->state
->get('salesforce.usage');
}