GameHistory() API

此 API 请求使运营商能够获取默认情况下使用真实现金模式进行的最近100轮游戏的历史记录。

GameHistory() 请求

类型输入
HTTP 方法POST
API URLhttps://<API_BASE_URL>/games/game-history/
标头"Content-Type": "application/json"
POST 参数json 对象 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,
}
参数类型描述
api_key字符串分配给每个前端的API Key
player_id字符串玩家 ID
amount_type字符串玩游戏的模式
start_date字符串开始日期时间格式如下 “YYYY-MM-DD HH:MM:SS”
end_date字符串结束日期时间格式如下 “YYYY-MM-DD HH:MM:SS”
page_num整数页数

GameHistory() 响应 + 示例

{ "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"] ] } } 
响应对象中的对象/Key类型描述
game_historyJSON 对象响应状态
game_history[‘headers’]JSON 列表表头
game_history[‘data’]JSON 表中表游戏回合数据表中表