Required parameter of data:
- token — identifies the player.
Response parameters:
- result — request result (true if successful and false if failed)
- err_desc — error description (if “result” is false)
- err_code — error code (if “result” is false)
- currencyId — ISO currency code
- totalBalance — player’s balance by specified currency
- nickName — player’s nickname
- Gender — 1 - male, 0 - female
- country — player`s country
- userID — player’s id is unique
GetPlayerInfo request example
Endpoint: https://example.tomhorngames.com/api/TomHorn/GetPlayerInfo
{
"time": "20-01-2016 13:1:15",
"data": {
"token": "d2a1d3e2-3c37-4ad5-a113-e3bf6b6b357c"
},
"hash": "eabca262ba693690d7be03755718aa5d"
}
Error codes
err_code | Description |
8 | Invalid Hash |
34 | Wrong Currency |
106 | Token Expired |
114 | Token not Found |
130 | General Error |
200 | Incorrect Parameters Passed |
Comments
0 comments
Article is closed for comments.