Retrieve binding list (getBindChannelsByOpenID)
The getBindChannelsByOpenID API is used to retrieve a list of binding channels based on OpenID.
Request parameters
| Parameters | Type | Description | Note |
|---|---|---|---|
| token | string | User token generated by Player Network SDK length:40 bytes, see Token for details | Required |
| openid | string | Player Network SDK unique user identifier Defaults to a 64-bit unsigned integer string, but can also support 32-bit | Required |
| channel_id | number | Player 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
| Parameters | Type | Description |
|---|---|---|
| ret | Number | Return code 0: Request successful !=0: Request failed, refer to msg for detailed results |
| msg | string | Result Explanation |
| bind_list | array | Binding List |
| seq | string | Data stream message sequence number |
bind_list
| Parameter | Type | Description |
|---|---|---|
| channel_info | Object | Information of the binding channel, content varies between channels. See Channel Information Description for details. |
| channelid | Number | Bound channel ID See Channel ID Explanation |
| picture_url | string | Profile picture link |
| user_name | string | Binding 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",
}