playerInfo
This method should be called in order to get player details (including balance) by externalToken passed to game client.
Request Example
POST /playerInfo HTTP/1.1
Content-Type: application/json
https://stg.otkgaming.com/playerInfo
{
"externalToken" : "valid-session-token"
}
| Property Name | Descriptio | Type | Notes |
|---|---|---|---|
| externalToken | player’s session token | string(255) | value passed upon game launch as query parameter |
Response Example
https://stg.otkgaming.com/playerInfo
{
"country" : "UK",
"currency" : "EUR",
"balance" : 10000,
"playerId" : "abc123"
}
| Property Name | Descriptio | Type | Notes |
|---|---|---|---|
| playerId | unique player identifier | string(100) | unique per platform |
| balance | player’s balance | decimal | balance in decimal number |
| currency | player’s currency | string(3) | ISO-4217-3 format |
| country | player’s country | string(2) | ISO-3166-1 alpha-2 format |