GameHistory() API

This API request enables the operator to get history of recent 100 game rounds played with real cash mode by default.

GameHistory() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/games/game-history/
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
"api_key": "1pghjl4v5apt2bks",
"player_id": "1002",
"amount_type": "real",
"start_date": "2020-02-20 00:00:00",
"end_date": "2020-02-21 00:00:00",
"page_num": 1,
}
ParametersTypeDescription
api_keyStringAPI Key allocated to each front-end
player_idStringID of the player
amount_typeStringMode using which game was played
start_dateStringEnd date time in the following format “YYYY-MM-DD HH:MM:SS”
end_dateStringEnd date time in the following format “YYYY-MM-DD HH:MM:SS”
page_numIntegerPage 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 ObjectTypeDescription
game_historyJSON ObjectResponse status
game_history[‘headers’]JSON ListTable headers
game_history[‘data’]JSON List of ListsList of Lists of game rounds data