Skip to content

Push Multiple Files to Multiple Cloud Phones ​

Push multiple files to multiple cloud phone devices, synchronously returns push results.

Interface Address:

text
/papi/file/uploadContainersFiles

Request Method:

text
POST

Content-Type:

text
application/json

Header Parameters:

ParameterTypeRequiredDescription
X-Access-KeystringYesAPI access key ID. See API Rules for authentication
X-SignaturestringYesSignature value, Base64-encoded HMAC-SHA256 hash
X-TimestampstringYesMillisecond Unix timestamp (13 digits)
X-NoncestringYesRandom string, 10-32 lowercase alphanumeric characters

Body Parameters:

ParameterTypeRequiredDescription
ctrIdListarray[string]YesCloud phone ID list
md5Listarray[string]YesFile MD5 list
targetPathstringNoTarget path, defaults to Download directory, if specified it becomes /sdcard/XXX
installFlagbooleanNoWhether to install after pushing, default false

Request Example:

json
{
    "ctrIdList": [
        "c5c7b07331144070bb92661ba049637cd71fecda5b4c74a84b1952e0524eba3c"
    ],
    "md5List": [
        "2fd07ca9481fa8507b18b43612648cc5"
    ],
    "targetPath": "",
    "installFlag": false
}

Response Parameters:

ParameterTypeDescription
codeintegerError code. See Error Codes
dataarray[object]Response data, operation result for each cloud phone
├─ successbooleanWhether the operation succeeded
├─ taskIdstringOperation task ID
├─ dataobjectData
├─ msgstringCurrent operation message
├─ ctrIdstringContainer CtrId
├─ ctrAliasstringContainer alias
├─ ctrSlotintegerCloud phone slot
msgstringError message

Response Example:

json
{
    "code": 0,
    "data": [
        {
            "success": false,
            "taskId": "",
            "data": {},
            "msg": "",
            "ctrId": "",
            "ctrAlias": "",
            "ctrSlot": 0
        }
    ],
    "msg": ""
}

OpenAPI Docs