GameHistoryAllPlayers() API

此 API 请求使运营商能够获取给定时间段内所有玩家的游戏历史记录。 目前,RGS API 每个请求最多发送 30 分钟的数据。

GameHistoryAllPlayers() 请求

类型输入
HTTP 方法POST
API URLhttps://<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_historyJSON 对象响应状态
game_history[‘headers’]JSON 列表 表头
game_history[‘data’]JSON 表中表游戏回合数据表中表