Get Mapping List (queryMapByCAccInfo)
The queryMapByCAccInfo API is used to obtain a list of channels mapped to a custom account based on custom account information.
Request parameters
| Parameters | Type | Description | Note |
|---|---|---|---|
| token | string | Custom account authorization token Length: 40 bytes, see Token | Required |
| openid | string | UID of self-managed account | Required |
Request sample
accountApi.queryMapByCAccInfo({
token:'vOrEZi@nAJ8CZICmY...WS7JMEu7Phiu_r7HfcHuQ==',
openid:'49...91',
}).then(
(res) => {
console.log(res);
}
);
Response parameters
| Parameters | Type | Description |
|---|---|---|
| ret | Number | Return code 0: Request successful !=0: Request failed, refer to msg for detailed results |
| msg | string | Result Explanation |
| seq | string | Sequence number of the data stream message |
| uid_list | array | Mapping channel uid list |
uid_list
| Parameters | Type | Description |
|---|---|---|
| channelid | number | Mapped Channel ID See Channel ID Description |
| uid | string | Mapped channel uid |
Return Sample
{
ret: 0,
msg: "success",
extra_field: ""
need_auth: false
sacc_uid: ""
uid_list: [
{
channelid: 4
uid: "633...105"
},
{
channelid: 6
uid: "11249...58500"
}
],
seq: "1639105985-1191493130-031434-0000571640",
}