protected function AcquiaDAM_Assets_AbstractAsset::request in Media: Acquia DAM 7
Client request wrapper.
A wrapper is necessary because a call to getClient() results in an API request immediately. We want the API to be somewhat useable when loading stored data without having to make API requests.
Parameters
string $endpoint: The API endpoint to request.
string|array $data: The data to send with the request.
array $headers: Any additional headers to include.
string $method: The request type.
Return value
array The result of the API request.
6 calls to AcquiaDAM_Assets_AbstractAsset::request()
- AcquiaDAM_Assets_AbstractAsset::get in src/
AcquiaDAM/ AcquiaDAM_Assets_AbstractAsset.inc - Fetch the asset from the API.
- AcquiaDAM_Assets_AbstractAsset::getMultiple in src/
AcquiaDAM/ AcquiaDAM_Assets_AbstractAsset.inc - Get multiple assets at once.
- AcquiaDAM_Assets_Asset::getDownload in src/
AcquiaDAM/ AcquiaDAM_Assets_Asset.inc - Get the asset download URL.
- AcquiaDAM_Assets_Asset::getMetadata in src/
AcquiaDAM/ AcquiaDAM_Assets_Asset.inc - Get metadata for the asset.
- AcquiaDAM_Assets_Folder::getAssets in src/
AcquiaDAM/ AcquiaDAM_Assets_Folder.inc - Get assets located in the folder.
File
- src/
AcquiaDAM/ AcquiaDAM_Assets_AbstractAsset.inc, line 93
Class
- AcquiaDAM_Assets_AbstractAsset
- Abstract class base for Acquia DAM assets.
Code
protected function request($endpoint, $data = NULL, array $headers = [], $method = 'GET') {
return $this
->getClient()
->request($endpoint, $data, $headers, $method);
}