跳到主要内容

查询绑定关系

POST /v2/profile/get_bind_info

此接口使游戏能够获得与 Player Network SDK OpenID 绑定的第三方渠道账号的列表。

请求参数

关于接口调用的查询参数,请参见 查询参数

参数类型描述备注
openidstringPlayer Network SDK 用户唯一标识必填
tokenstringPlayer 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"}'

返回参数

参数类型描述
retint返回码
0:正确
其他:失败
msgstring结果的详细信息
bind_listarray绑定渠道账号的列表

bind_list 数组包含绑定渠道的账号,个账号具有以下参数:

参数类型描述
channelidint渠道号
user_namestring用户名
picture_urlstring头像 URL 地址
openidstringPlayer 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
}