Get Linking Information
POST /v2/profile/get_bind_info
This endpoint enables the game to get the list of third party channel accounts linked to Player Network SDK OpenID.
Request parameters
For query parameters, see Query parameters.
| Parameter | Type | Description | Remark | 
|---|---|---|---|
| openid | string | Unique user ID | Required | 
| token | string | Player Network SDK token | Required | 
Request sample
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"}'
Response parameters
| Parameter | Type | Description | 
|---|---|---|
| ret | int | Return code 0: success others: failure | 
| msg | string | Response message | 
| bind_list | array | The list of linked channel accounts | 
bind_list array contains the linked channel accounts, each with the following parameters:
| Parameter | Type | Description | 
|---|---|---|
| channelid | int | Channel ID | 
| user_name | string | User name | 
| picture_url | string | URL of user avatar | 
| openid | string | Unique user ID | 
Response 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
}