GetBindChannelsByOpenID
The getBindChannelsByOpenID
API is used to get the list of linked channels based on Player Network SDK OpenID.
Request Parameter
Parameter | Type | Description | Remark |
---|---|---|---|
token | string | Player Network SDK user authorization token Length: 40 bytes, see Token | Required |
openid | string | Player Network SDK unique user ID The default value is 64-bit unsigned integer string, 32-bit string is also supported. | Required |
channel_id | number | Player Network SDK authorized channel ID For more information, see Login Channel and ChannelID Relationship. | Required |
Request Sample
accountApi.getBindChannelsByOpenID({
openid:'xxx',
token:'xxxx',
channel_id:4,
}).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 |
bind_list | array | List of linked channels |
seq | string | Sequence number of the message in the data stream |
bind_list
Parameter | Type | Description |
---|---|---|
channel_info | object | Channel information of the linked channel. The information differs for each channel. For more information, see Channel Information. |
channelid | number | Channel ID of the linked channel. For more information, see Login Channel and ChannelID Relationship. |
picture_url | string | URL of the avatar |
user_name | string | Username of the linked channel |
Response 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",
}