Skip to main content

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

ParameterTypeDescriptionRemark
tokenstringUser authorization token for custom account
Length: 40 bytes, see Token
Required
openidstringCustom account UIDRequired

Request Sample

accountApi.queryMapByCAccInfo({
token:'vOrEZi@nAJ8CZICmY...WS7JMEu7Phiu_r7HfcHuQ==',
openid:'49...91',
}).then(
(res) => {
console.log(res);
}
);

Response Parameter

ParameterTypeDescription
retnumberReturn code
0: Request success, parse related returned field information.
!=0: Request failure, check msg for the detailed return message.
msgstringReturn message
seqstringSequence number of the message in the data stream
uid_listarrayUID list of the mapped channel

uid_list

ParameterTypeDescription
channelidnumberChannel ID of the mapped channel
For more information, see Login Channel and ChannelID Relationship.
uidstringUID 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",
}