Browse developer docs
List original photos
POSTraw-data
Request
Send POST to /open/service with serviceName=raw-data and the common signing parameters.
Send extra fields in the JSON body
workType is flyins or aerial. Follow the marker cursor for additional pages.
Request example
# Requires curl 7.87+, Python 3 and OpenSSL.
: "${XAG_APP_UID:?Set XAG_APP_UID}"
: "${XAG_APP_SECRET:?Set XAG_APP_SECRET}"
timestamp=$(python3 -c 'import time; print(time.time_ns() // 1000000)')
token=$(printf "%s" "$XAG_APP_UID$timestamp$XAG_APP_SECRET" | openssl dgst -sha1 -r | cut -d " " -f 1)
curl --silent --show-error --fail-with-body --max-time 30 --request POST \
'https://open.xa.com/open/service' \
--url-query 'serviceName=raw-data' \
--url-query "appUid=$XAG_APP_UID" \
--url-query "timestamp=$timestamp" \
--url-query "token=$token" \
--header 'Content-Type: application/json' \
--data '{
"uavsn": "YOUR_SCOUTING_DRONE_SN",
"workUuid": "YOUR_WORK_UUID",
"workType": "aerial"
}'| Parameter | Requirement | Meaning |
|---|---|---|
uavsn | Required | Scouting aircraft serial number. |
workUuid | Required | Work identifier returned by the job query. |
workType | Required | Use aerial for a survey or flyins for an inspection flight. |
marker | Optional | Pagination cursor. Omit it for the first page. |
Response
The result contains photo records for the requested work. Use the cursor returned by the service to retrieve more records.
Show example response fields and types
{
"data": {
"fileInfos": [
{
"contentType": "string",
"eTag": "string",
"key": "string",
"lastModified": "number",
"size": "number",
"storageType": "string",
"url": "string",
"thumbnailUrl": "string"
}
],
"marker": "string",
"nextMarker": "string"
},
"status": "number"
}