Skip to content

Server Verification User Compatibility Version

User Information Verification Interface

The user verification interface is the interface for the game server to verify the legitimacy of the user. The game server needs to call the SDK server interface and confirm whether the user is legitimate based on the returned result

Host

  • platform.hoolai.com

Protocol

  • Http

  • https

Method

  • POST

Path

  • /official/original/validateAccessTokenAdvanced

Request header

  • Content-Type: application/json

  • X-ACCESS-TOKEN: accessToken obtained by the client login (the old interface docking requires base64Decoding the accessToken to obtain the token attribute in json)

Request parameters

Parameter nameTypeDescription
productIdInteger/intGame product ID
channelString/stringGame channel (sdk channel key)
channelIdInteger/intChannel ID
loginUidLongCurrent logged-in user id
platformString/stringDevice platform (optional: iOS, android)

Request response

  • Correct response
json
{
    "code": "SUCCESS",
    "sign": "0daa95c4f278a77ceaadb01b62896a12.1650942836",
    "value": "T0s=",
    "desc": "SUCCESS",
    "group": "SUCCESS"
}
  • Response value returned (Note: value needs to be base64 decoded)
Parameter nameTypeDescription
loginChannelString/stringUser login channel identifier
loginChannelUidString/stringUser login channel uid (third-party channel user id)
hoolaiUidLonghoolai user id
  • Error response
json
{
    "code": "AUTHORIZE_INFO_ERROR",
    "requestId": null,
    "exceptionId": null,
    "desc": "AUTHORIZE_INFO_ERROR",
    "group": "gateway"
}

Note

The above is just an example of incorrect authorization information, and the error response is just one of them

Hoolai Access SDK