Query binding relationship
POST /v2/profile/get_bind_info
This interface allows the game to obtain a list of third-party channel accounts that are bound to the Player Network SDK OpenID.
Request Parameters
For the query parameters for interface calls, see Query Parameters.
| Parameters | Type | Description | Note |
|---|---|---|---|
| openid | string | Player Network SDK user identification | Required |
| token | string | Player Network SDK token | Required |
Request example
curl -sS -X POST -H 'Content-Type: application/json' 'https://test.intlgame.com/v2/profile/get_bind_info?channelid=4&gameid=11&os=1&sdk_version=2.0&seq=&source=0&ts=1583488081&sig=d0dabe16fb5241bbcd84517aa4e2f670' -d '{"openid":"17059603775778004866","token":"d1b16777eeaf0fd06ab20600a433821cc656c81b"}'
Return Parameters
| Parameter | Type | Description |
|---|---|---|
| ret | int | Return code 0: Success Others: Failure |
| msg | string | Detailed information of the result |
| bind_list | array | List of bound channel accounts |
The bind_list array contains accounts bound to the channel, each account has the following parameters:
| Parameters | Type | Description |
|---|---|---|
| channelid | int | Channel number |
| user_name | string | Username |
| picture_url | string | Avatar URL |
| openid | string | Player Network SDK unique user identifier |
Return Sample
{
"seq": "1583488081-0268717065-028958-0000000026",
"bind_list": [
{
"channel_info": {
"phone": "xxxxxxxxxx",
"phonearea": "xx",
"email": ""
},
"picture_url": "",
"user_name": "xx-xxxxxxxxxx",
"channelid": 11,
"is_primary": 0
},
{
"channel_info": {},
"picture_url": "https://graph.facebook.com/v3.0/1071441666368496/picture?width=160&height=160",
"user_name": "",
"channelid": 4,
"is_primary": 0
},
{
"channel_info": {
"phone": "xxxxxxxxxx",
"phonearea": "86",
"email": ""
},
"picture_url": "",
"user_name": "xx-xxxxxxxxxx",
"channelid": 7,
"is_primary": 1
}
],
"msg": "success",
"ret": 0
}