public function AcquiaDAM_Assets_Asset::getDownload in Media: Acquia DAM 7
Get the asset download URL.
Parameters
array $options: An array of options to pass to the API call.
Return value
array|false The request response or FALSE on failure.
1 call to AcquiaDAM_Assets_Asset::getDownload()
- AcquiaDAM_Assets_Asset::getDownloadUrl in src/
AcquiaDAM/ AcquiaDAM_Assets_Asset.inc - Get the asset download URL.
File
- src/
AcquiaDAM/ AcquiaDAM_Assets_Asset.inc, line 81
Class
- AcquiaDAM_Assets_Asset
- Generic Acquia DAM assets.
Code
public function getDownload(array $options = []) {
$this
->requireId();
$options += [
'sendNotificationsOff' => TRUE,
'trackDownloadsOff' => TRUE,
'geturl' => FALSE,
];
return $this
->request(sprintf('%s/%d/download', $this
->getEndpointBase(), $this->asset['id']), $options);
}