You are here

protected function AcquiaDAM_Assets_Asset::getMetadata in Media: Acquia DAM 7

Get metadata for the asset.

Parameters

string $type: The metadata type to return: exif, xmp.

Return value

array The metadata request response.

2 calls to AcquiaDAM_Assets_Asset::getMetadata()
AcquiaDAM_Assets_Asset::getEXIF in src/AcquiaDAM/AcquiaDAM_Assets_Asset.inc
Get EXIF metadata for the asset.
AcquiaDAM_Assets_Asset::getXMP in src/AcquiaDAM/AcquiaDAM_Assets_Asset.inc
Get XMP metadata for the asset.

File

src/AcquiaDAM/AcquiaDAM_Assets_Asset.inc, line 43

Class

AcquiaDAM_Assets_Asset
Generic Acquia DAM assets.

Code

protected function getMetadata($type = 'exif') {
  $this
    ->requireId();
  return $this
    ->request(sprintf('%s/%d/metadatas/%s', $this
    ->getEndpointBase(), $this->assetId, $type));
}