QueryMapByCAccInfo
The queryMapByCAccInfo
API is used to get the list of channels mapped to the custom account based on the channel information of custom account.
Request Parameter
Parameter | Type | Description | Remark |
---|---|---|---|
token | string | User authorization token for custom account Length: 40 bytes, see Token | Required |
openid | string | Custom account UID | Required |
Request Sample
accountApi.queryMapByCAccInfo({
token:'vOrEZi@nAJ8CZICmY...WS7JMEu7Phiu_r7HfcHuQ==',
openid:'49...91',
}).then(
(res) => {
console.log(res);
}
);
Response Parameter
Parameter | Type | Description |
---|---|---|
ret | number | Return code 0: Request success, parse related returned field information. !=0: Request failure, check msg for the detailed return message. |
msg | string | Return message |
seq | string | Sequence number of the message in the data stream |
uid_list | array | UID list of the mapped channel |
uid_list
Parameter | Type | Description |
---|---|---|
channelid | number | Channel ID of the mapped channel For more information, see Login Channel and ChannelID Relationship. |
uid | string | UID of the mapped channel |
Response 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",
}