查询绑定关系
POST /v2/profile/get_bind_info
此接口使游戏能够获得与 Player Network SDK OpenID 绑定的第三方渠道账号的列表。
请求参数
关于接口调用的查询参数,请参见 查询参数。
参数 | 类型 | 描述 | 备注 |
---|---|---|---|
openid | string | Player Network SDK 用户唯一标识 | 必填 |
token | string | Player Network SDK token | 必填 |
请求示例
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"}'
返回参数
参数 | 类型 | 描述 |
---|---|---|
ret | int | 返回码 0:正确 其他:失败 |
msg | string | 结果的详细信息 |
bind_list | array | 绑定渠道账号的列表 |
bind_list
数组包含绑定渠道的账号,个账号具有以下参数:
参数 | 类型 | 描述 |
---|---|---|
channelid | int | 渠道号 |
user_name | string | 用户名 |
picture_url | string | 头像 URL 地址 |
openid | string | Player Network SDK 用户唯一标识 |
返回示例
{
"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
}