This API request enables the operator to get the game history of all the players for a given time period. For now, RGS API sends up to 30 minutes of data per request.
GameHistoryAllPlayers() Request
Type | Input |
---|---|
HTTP Method | POST |
API URL | https://<API_BASE_URL>/games/game-history-all-players/ |
Headers | "Content-Type": "application/json" |
POST Parameters | json object e.g.: |
Parameters | Type | Description |
---|---|---|
api_key | String | API Key allocated to each front-end |
amount_type | String | Mode using which game was played |
start_date | String | Start date time in the following format “YYYY-MM-DD HH:MM:SS” |
end_date | String | End date time in the following format “YYYY-MM-DD HH:MM:SS” |
GameHistoryAllPlayers() Response + Example
{
"game_history":
{"headers": ["Player ID", "Game ID", "Game Name", "Game Category", "Platform", "Round ID", "Bet Amount", "Win Amount", "Amount Type", "Play Type", "Date Time", "Bet Status"],
"data":[
["1001", "1001", "Game-1 Title", "slots", "desktop", 1234, 100, 0, "real", "normal", "2020-05-05 10:20:57", "lose"],
["1001", "1001", "Game-2 Title", "slots", "desktop", 1234, 100, 10, "real", "freespin", "2020-05-05 10:20:57"],
["1001", "1001","Game-3 Title", "slots", "desktop", 1234, 100, 20, "real", "normal", "2020-05-05 10:20:57", "lose"],
["1001", "1001","Game-4 Title", "slots", "desktop", 1234, 100, 0, "real", "respin", "2020-05-05 10:20:57", "win"]
]
}
}
Object/Key in Response Object | Type | Description |
---|---|---|
game_history | JSON Object | Response status |
game_history[‘headers’] | JSON List | Table headers |
game_history[‘data’] | JSON List of Lists | List of Lists of game rounds data |