Skip to main content

Get User Information

POST /v2/profile/userinfo

This endpoint enables the game to get the detailed information of a specific user.

Request parameters

For query parameters, see Query parameters.

ParameterTypeDescriptionRemark
openidstringUnique user IDRequired
tokenstringaccess tokenRequired

Request sample

curl -sS -X POST -H 'Content-Type: application/json' 'https://test.intlgame.com/v2/profile/userinfo?channelid=4&gameid=28017&os=1&seq=&source=0&ts=1609863578&sdk_version=2.0&sig=da4486973cd80766fefe824809c025ec' -d '{"openid":"1465825845797363630","token":"e14611f2bf01811bfeac1bce0addfa2ddf32d5aa"}'

Response parameters

ParameterTypeDescription
retintReturn code
0: success
others: failure
msgstringResponse message
user_namestringUser name
genderintGender
0: Undefined
1: Male
2: Female
birthdaystringDate of birth
Format: "YYYY-MM-DD"
picture_urlstringURL of user avatar
bind_listarraybind info list

bind_list array contains the linked channel accounts, each with the following parameters:

ParameterTypeDescription
channelidintChannel ID
user_namestringUser name
picture_urlstringURL of user avatar
openidstringUnique user ID

Response sample

{
"ret": 0,
"msg": "success",
"bind_list": [
{
"channelid": 4,
"user_name": "xxx",
"picture_url": "https://graph.facebook.com/v3.0/2333514436748433/picture?width=160&height=160"
}
],
"user_name": "xxx",
"picture_url": "https://graph.facebook.com/v3.0/2333514436748433/picture?width=160&height=160",
"gender": 0,
"birthday": "",
"seq": "xxxxxxxxxx-xxxxxxxxxx-xxxxxx-xxxxxxxxxx"
}