Operator makes ExitGame() API request to RGS API to exit the player from the game. RGS API deletes the session ID of the player that was created earlier in DG back-end.
GameExit() Request
Type | Input |
---|---|
HTTP Method | POST |
API URL | https://<API_BASE_URL>/games/game-exit/ |
Headers | "Content-Type": "application/json" |
POST Parameters | json object e.g.: { |
Parameters | Type | Description |
---|---|---|
api_key | String | API Key allocated to each front-end |
username | String | Player’s username |
GameExit() Response + Example
Response would be in JSON format. Type: dictionary.
{
"result": {"status": "success"
}
}
Object/Key in Response Object | Type | Description |
---|---|---|
result | JSON Object | Key result contains the JSON object as value. |
status | String | Response status |