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().

  • Quota: 6
Table 1. Parameters
ParameterTypeMax LengthRequiredDescription
apiToken string 20Y Your API security token configured in Field View.
taskId integer 20Y The unique ID of the task.
mediaIdstring20YThe ID in <Attachment> from GetAssetAttachments, where Type = "Photo"
Table 2. Returns
FieldTypeDescription
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>