Push Multiple Files to Multiple Cloud Phones
Push multiple files to multiple cloud phone devices, synchronously returns push results.
Interface Address:
text
/papi/file/uploadContainersFilesRequest Method:
text
POSTContent-Type:
text
application/jsonHeader Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| X-Access-Key | string | Yes | API access key ID. See API Rules for authentication |
| X-Signature | string | Yes | Signature value, Base64-encoded HMAC-SHA256 hash |
| X-Timestamp | string | Yes | Millisecond Unix timestamp (13 digits) |
| X-Nonce | string | Yes | Random string, 10-32 lowercase alphanumeric characters |
Body Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
| ctrIdList | array[string] | Yes | Cloud phone ID list |
| md5List | array[string] | Yes | File MD5 list |
| targetPath | string | No | Target path, defaults to Download directory, if specified it becomes /sdcard/XXX |
| installFlag | boolean | No | Whether to install after pushing, default false |
Request Example:
json
{
"ctrIdList": [
"c5c7b07331144070bb92661ba049637cd71fecda5b4c74a84b1952e0524eba3c"
],
"md5List": [
"2fd07ca9481fa8507b18b43612648cc5"
],
"targetPath": "",
"installFlag": false
}Response Parameters:
| Parameter | Type | Description |
|---|---|---|
| code | integer | Error code. See Error Codes |
| data | array[object] | Response data, operation result for each cloud phone |
| ├─ success | boolean | Whether the operation succeeded |
| ├─ taskId | string | Operation task ID |
| ├─ data | object | Data |
| ├─ msg | string | Current operation message |
| ├─ ctrId | string | Container CtrId |
| ├─ ctrAlias | string | Container alias |
| ├─ ctrSlot | integer | Cloud phone slot |
| msg | string | Error message |
Response Example:
json
{
"code": 0,
"data": [
{
"success": false,
"taskId": "",
"data": {},
"msg": "",
"ctrId": "",
"ctrAlias": "",
"ctrSlot": 0
}
],
"msg": ""
}