Skip to main content

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

ParametersTypeDescriptionNote
tokenstringCustom account authorization token
Length: 40 bytes, see Token
Required
openidstringUID of self-managed accountRequired

Request sample

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

Response parameters

ParametersTypeDescription
retNumberReturn code
0: Request successful
!=0: Request failed, refer to msg for detailed results
msgstringResult Explanation
seqstringSequence number of the data stream message
uid_listarrayMapping channel uid list

uid_list

ParametersTypeDescription
channelidnumberMapped Channel ID
See Channel ID Description
uidstringMapped 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",
}