Skip to main content

Get the Bind List (getBindChannelsByUid)

The getBindChannelsByUid API is used to obtain a list of bound channels from the current channel's login information.For example, obtain a list of bound channels based on the authentication information from Facebook.

Request parameters​

ParametersTypeDescriptionNote
channel_idnumberPlayer Network SDK-authorized channel ID
For more information, see Login Channels and Channel ID Relationships.
Required
channel_infoobjectChannel information of the current channel.
For more information, see Channel Information.
Required

Request sample​

accountApi.getBindChannelsByUid({
channel_id: 4,
channel_info: {
access_token: "EAAI2lTrXAZBwBAEWdBW...LUdVblu9qPwZDZD"
}
}).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 Serial Number

bind_list​

ParametersTypeDescription
channel_infoobjectChannel information for the bound channel.
For more information, see Channel Information.
channelidnumberThe channel ID of the bound channel.
For more information, see Relationship Between Login Channels and Channel IDs.
picture_urlstringProfile picture link
user_namestringBinding channel's username

Response sample​

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