GetPhoto()
The GetPhoto() command returns a photo attachment as a Base64 encoded binary string.
To get a list of photos attached to an asset, see GetAttachments().
|
Parameter | Type | Max Length | Required | Description |
---|---|---|---|---|
apiToken | string | 20 | Y | Your API security token configured in Field View. |
assetID | integer | Y | The unique ID of the asset. | |
mediaID | string | 20 | Y | The ID in <Attachment> from GetAssetAttachments where Type = “Photo.” |
Field | Type | Description |
---|---|---|
GetPhotoResponse | GetPhotoResponse | Returns a single photo attachment object. Note that <Media> contains a Base64 encoded binary string. All photos are JPG format. |
<GetPhotoResponse>
<GetPhotoResult>
<MediaResponse>
<MediaId>1.12345</MediaId>
<Media>[BASE 64 Encoded JPG]</Media>
<DateRecorded>2017-01-16T16:21:14.033</DateRecorded>
<Status>
<Code>SUCCESS</Code>
<Message>Success.</Message>
</Status>
</MediaResponse>
</GetPhotoResult>
</GetPhotoResponse>