Request method: POST.
request address/v3/device/account/batchoperate
The API request address is corresponding to the service access point. Select the request address corresponding to the service access point of your application.
Feature: this is an async API that is only responsible for task issuance, with real-time operation currently unsupported.
Parameter Name | Type | Required | Description |
---|---|---|---|
operator_type | Integer | Yes | Operation type. Value range: [1,5] as detailed below: |
platform | String | Yes | Client platform type |
account_list | Array | No | The collection of account IDs, which is valid if operator_type is 5, with each element being required, including account and account_type fields.For example: [{"account":"926@126.com"},{"account":"1527000000"}] |
token_list | Array | No | The collection of device IDs, which is valid if operator_type is 4 and is required |
token_accounts | Array | No | It is valid if operator_type is 1, 2, or 3 and must be called each time. Up to 20 tokens are allowed, and each token_account consists of 1 token and 1 account_list . Below is an example:[{"token":"token1","account_list":[{"account":"926@126.com"},{"account":"1527000000"}], {"token":"token2","account_list":[{"account":"926@163.com",{"account":"1527000001"}]}] |
Parameter Name | Type | Description |
---|---|---|
ret_code | Integer | Return code |
err_msg | String | Error message |
result | Array | Operation status code corresponding to each token or account ["0","1008006"] |
{
"operator_type": 1,
"platform": "android",
"token_accounts": [
{
"token": "token1",
"account_list": [
{
"account": "926@126.com"
},
{
"account": "1527000000"
}
]
},
{
"token": "token2",
"account_list": [
{
"account": "926@163.com"
},
{
"account": "1527000001"
}
]
}
]
}
{
"operator_type": 2,
"platform": "android",
"token_accounts": [
{
"token": "token1",
"account_list": [
{
"account": "926@126.com"
},
{
"account": "1527000000"
}
]
},
{
"token": "token2",
"account_list": [
{
"account": "926@163.com"
},
{
"account": "1527000001"
}
]
}
]
}
{
"operator_type": 3,
"platform": "android",
"token_accounts": [
{
"token": "token1",
"account_list": [
{
"account": "926@126.com"
},
{
"account": "1527000000"
}
]
},
{
"token": "token2",
"account_list": [
{
"account": "926@163.com"
},
{
"account": "1527000001"
}
]
}
]
}
{
"operator_type": 4,
"platform": "android",
"token_list": [
"token1",
"token2",
"token3"
]
}
{
"operator_type": 5,
"platform": "android",
"account_list": [
{
"account": "926@126.com"
},
{
"account": "1527000000"
}
]
}
Binds token to an account
{
"result": [
"ok",
"ok"
],
"ret_code": 0,
"err_msg": "ok"
}
Was this page helpful?