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 | Integer | Player ID of the player known to the Operator |
amount_type | String | Mode of Play For Example: ‘real’ – when playing with real cash ‘freespins’ – when playing with promo freespins |
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
Response would be in JSON format. Type: dictionary.
{
"game_history": {
"headers": [
"game_name",
"round_id",
"bet_amount",
"win_amount",
"amount_type",
"timestamp"
],
"data": [
[
"Test Game Name-1",
1001,
100,
100,
"real",
"2019-07-23 17:20:57"
],
[
"Test Game Name-2",
1002,
100,
100,
"real",
"2019-07-23 17:20:57"
],
[
"Test Game Name-3",
1003,
100,
100,
"real",
"2019-07-23 17:20:57"
]
]
}
}
Object/Key in Response Object | Type | Description |
---|---|---|
game_history | JSON Object | Key game_history contains the JSON object as value. Contains 2 keys. Value of each is a list |
game_history[‘headers’] | JSON List | Table headers |
game_name | String | Name of the game |
round_id | Integer | Round of each game played |
bet_amount | Integer | Bet amount of the round in cents |
win_amount | Integer | Win amount of the round in cents |
amount_type | String | Mode using which game was played |
timestamp | String | Server UTC time game played at |
game_history[‘data’] | JSON List of Lists | List of Lists of game rounds data |