Skip to content

Get File Download Result

Request

Poll the status of a file download from a Cloud Phone.

  • Preconditions: the phone must be powered on and not held by another member. Pass the downId returned by the download request.
  • Values: a different scale from uploads10 running, 20 succeeded, 30 failed, 40 cancelled. downUrl is only populated once the download has succeeded.
  • Note: “file does not exist” is reported by the download request itself, which scans the parent directory first, not by this endpoint.
Security
Authorization
Bodyapplication/jsonrequired
idstringrequired

cloud phone id

downIdstringrequired

file download id

curl -i -X POST \
  https://api.morelogin.com/cloudphone/download/result \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "downId": "1661515884160999",
    "id": "1661515884160372"
  }'

Responses

Success. data is an object with the fields status, downId and downUrl.

Headers
any
Bodyapplication/json
codeintegerrequired

Response code, 0 indicates success,>0 indicates failure

msgstring or nullrequired
dataobjectrequired
requestIdstringrequired
Response
{ "code": 0, "msg": null, "data": { "status": 20, "downId": "1661515884160999", "downUrl": "https://get.morelogin.com/..." }, "requestId": "17d9dbfd958e4f40a51897520138d3ff" }