public function RestClient::getApiUsage in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/Rest/RestClient.php \Drupal\salesforce\Rest\RestClient::getApiUsage()
- 8.3 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 395
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');
}