Skip to content

Tải lên kết quả tập tin

Request

Hỏi vòng trạng thái của một lượt tải tệp lên cloud phone.

  • Giá trị: 0 đang tải lên, 1 thành công, 2 thất bại.
  • Kết quả rỗng: khi không tìm thấy fileId, lệnh gọi vẫn thành công nhưng data bằng null. Hãy hiểu điều đó là «chưa thấy hoặc không còn tồn tại», không phải một lỗi.
  • Chi phí: truy vấn này quét danh sách tệp của dịch vụ thiết bị; hãy hỏi vòng ở khoảng thời gian vừa phải.
  • Lưu ý về bề mặt API: cùng một hiện thực với /cloudphone/uploadFileResult trên Open API.
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" }