跳转到内容

文件上传结果

Request

轮询文件上传到云手机的状态。

  • 取值:0 上传中,1 成功,2 失败。
  • 空结果:找不到该 fileId 时调用仍然成功,但 data 为 null。请把它理解为「尚未可见或已不存在」,而不是失败。
  • 开销:该查询会扫描设备服务的文件列表;请以适度间隔轮询。
  • 接口面说明:与 Open API 的 /cloudphone/uploadFileResult 是同一套实现。
Bodyapplication/jsonrequired
idstringrequired
fileIdstringrequired
curl -i -X POST \
  http://127.0.0.1:40000/api/cloudphone/upload/file/result \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "1666625111121936",
    "fileId": "10069434"
  }'

Responses

Success. data is an object with the fields id, fileId and status.

Headers
any
Bodyapplication/json
codeintegerrequired

Response code, 0 indicates success,>0 indicates failure

msgstring or nullrequired
dataobject or nullrequired
requestIdstringrequired
Response
{ "code": 0, "msg": null, "data": { "id": "1666625111121936", "fileId": "10069435", "status": 0 }, "requestId": "e5d69c5e2d364106a0715dab1d9a03d3" }