GenerateNewToken
When the provider needs to change the game through the lobby, there is a /generateNewToken call available to get new token for openning that game.
Request Example
POST /generateNewToken HTTP/1.1
Content-Type: application/json
https://stg.otkgaming.com/generateNewToken
{
"token" : "valid-session-token",
"newGameId" : "123"
}
| Property Name | Descriptio | Type | Notes |
|---|---|---|---|
| token | player’s session token | string(255) | value passed upon game launch as query parameter |
| newGameId | game's identifier from provider side | string(100) | new game id which player wants to launch |
Response Example
https://stg.otkgaming.com/generateNewToken
{
"newToken" : "new-valid-session-token"
}
| Property Name | Descriptio | Type | Notes |
|---|---|---|---|
| newToken | new token to launch the game | string(255) | value to pass for open the game |