GameHistory() API

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

GameHistory() Request

类型输入
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字符串游戏模式
例如: ‘real’ – 用真实货币游戏时 ‘freespins’ – 用推广免费旋转游戏时
start_date字符串开始日期时间格式如下 “YYYY-MM-DD HH:MM:SS”
end_date字符串结束日期时间格式如下 “YYYY-MM-DD HH:MM:SS”
page_numInteger页数

GameHistory() 响应 + 示例

响应将采用 JSON 格式。 类型:字典。

{ "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" ] ] } }
响应对象中的对象/Key类型描述
game_historyJSON 对象Key game_history 包含 JSON 对象作为值。 包含 2 个Key。 每个的数值都是一个列表
game_history[‘headers’]JSON 列表表头
game_name字符串游戏名称
round_id整数每局游戏的回合数
bet_amount整数以美分为单位的回合下注金额
win_amount整数以美分为单位的回合获胜金额
amount_type字符串玩游戏的模式
timestamp字符串游戏进行的服务器UTC时间
game_history[‘data’]JSON 表中表游戏回合数据表中表