Skip to main content

Retrieve binding list (getBindChannelsByOpenID)

The getBindChannelsByOpenID API is used to retrieve a list of binding channels based on OpenID.

Request parameters

ParametersTypeDescriptionNote
tokenstringUser token generated by Player Network SDK
length:40 bytes, see Token for details
Required
openidstringPlayer Network SDK unique user identifier
Defaults to a 64-bit unsigned integer string, but can also support 32-bit
Required
channel_idnumberPlayer Network SDK authorization channel ID
See Channel ID Explanation
Required

Request sample

accountApi.getBindChannelsByOpenID({
openid:'xxx',
token:'xxxx',
channel_id:4,
}).then(
(res) => {
console.log(res);
}
);

Response parameters

ParametersTypeDescription
retNumberReturn code
0: Request successful
!=0: Request failed, refer to msg for detailed results
msgstringResult Explanation
bind_listarrayBinding List
seqstringData stream message sequence number

bind_list

ParameterTypeDescription
channel_infoObjectInformation of the binding channel, content varies between channels.
See Channel Information Description for details.
channelidNumberBound channel ID
See Channel ID Explanation
picture_urlstringProfile picture link
user_namestringBinding channel's username

Return Sample

{
ret: 0,
msg: "success",
bind_list: [
{
channel_info: {},
channelid: 28,
picture_url: "https://www.google.com/Images/profileA.png",
user_name: "user"
},
{
channel_info: {},
channelid: 4,
picture_url: "https://www.google.com/Images/profileB.png",
user_name: "user"
}
],
seq: "1639105985-1191493130-031434-0000571640",
}