This API request enables the operator to get history of recent 100 game rounds played with real cash mode by default.
GameHistory() Request
Type | Input |
---|---|
HTTP Method | POST |
API URL | https://<API_BASE_URL>/games/game-history/ |
Headers | "Content-Type": "application/json" |
POST Parameters | json object e.g.: |
Parameters | Type | Description |
---|---|---|
api_key | String | API Key allocated to each front-end |
player_id | String | ID of the player |
amount_type | String | Mode using which game was played |
start_date | String | End 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” |
page_num | Integer | Page number |
GameHistory() Response + Example
{
"game_history": {"headers": ["Game Name", "Round ID", "Bet Amount", "Win
Amount", "Amount Type", "Date Time"],
"data": [
["Test Game Name-1", 1001, 100, 100, "real",
"2019-07-23 17:20:57"],
["Test Game Name-1", 1002, 100, 100, "real",
"2019-07-23 17:20:57"],
["Test Game Name-2", 1003, 100, 100, "real",
"2019-07-23 17:20:57"]
]
}
}
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 |