此 API 请求使运营商能够获取给定时间段内所有玩家的游戏历史记录。 目前,RGS API 每个请求最多发送 30 分钟的数据。
GameHistoryAllPlayers() 请求
类型 | 输入 |
---|
HTTP 方法 | POST |
API URL | https://<API_BASE_URL>/games/game-history-all-players/ |
标头 | "Content-Type": "application/json" |
POST 参数 | json 对象 e.g.: { "api_key": "1pghjl4v5apt2bks", "amount_type": "real", "start_date": "2020-05-26 13:30:00", "end_date": "2020-05-26 14:00:35", } |
参数 | 类型 | 描述 |
---|
api_key | 字符串 | 分配给每个前端的 API Key |
amount_type | 字符串 | 游戏游玩的模式 |
start_date | 字符串 | 开始日期时间格式如下 “YYYY-MM-DD HH:MM:SS” |
end_date | 字符串 | 结束日期时间格式如下 “YYYY-MM-DD HH:MM:SS” |
GameHistoryAllPlayers() 响应 + 示例
{ "game_history": {"headers": ["Player ID", "Game ID", "Game Name", "Game Category", "Platform", "Round ID", "Bet Amount", "Win Amount", "Amount Type", "Play Type", "Date Time", "Bet Status"], "data":[ ["1001", "1001", "Game-1 Title", "slots", "desktop", 1234, 100, 0, "real", "normal", "2020-05-05 10:20:57", "lose"], ["1001", "1001", "Game-2 Title", "slots", "desktop", 1234, 100, 10, "real", "freespin", "2020-05-05 10:20:57"], ["1001", "1001","Game-3 Title", "slots", "desktop", 1234, 100, 20, "real", "normal", "2020-05-05 10:20:57", "lose"], ["1001", "1001","Game-4 Title", "slots", "desktop", 1234, 100, 0, "real", "respin", "2020-05-05 10:20:57", "win"] ] } }
响应对象中的对象/Key | 类型 | 描述 |
---|
game_history | JSON 对象 | 响应状态 |
game_history[‘headers’] | JSON 列表 | 表头 |
game_history[‘data’] | JSON 表中表 | 游戏回合数据表中表 |