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 name | Type | Description |
---|---|---|
productId | Integer/int | Game product ID |
channel | String/string | Game channel (sdk channel key) |
channelId | Integer/int | Channel ID |
loginUid | Long | Current logged-in user id |
platform | String/string | Device 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 name | Type | Description |
---|---|---|
loginChannel | String/string | User login channel identifier |
loginChannelUid | String/string | User login channel uid (third-party channel user id) |
hoolaiUid | Long | hoolai 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