GetPhoto()
The GetPhoto() command returns a photo attachment as a Base64 encoded binary string.
To get a list of photos attached to a task, see GetAttachments().
|
Parameter | Type | Max Length | Required | Description |
---|---|---|---|---|
apiToken | string | 20 | Y | Your API security token configured in Field View. |
taskId | integer | 20 | Y | The unique ID of the task. |
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>