PlayerBets() API

此 API 请求使运营商能够获得玩家在给定时间段内的投注活动汇总。

PlayerBets() 请求

类型Input
HTTP 方法POST
API URLhttps://<API_BASE_URL>/player/player-bets/
标头"Content-Type": "application/json"
POST 参数json object e.g.:
{
"api_key": "1pghjl4v5apt2bks",
"username": "test_username",
"start_date": "2020-02-20",
"end_date": "2020-02-21",
"amount_type": "real",
}
参数类型描述
api_key字符串分配给每个前端的 API Key
username字符串玩家的用户名
start_date字符串开始日期 用于感兴趣的时间段
end_date字符串结束日期用于感兴趣的时间段
amount_type字符串游戏类型

玩家投注() 响应 + 示例

{ "result": {"status": "success", "username": "test_username", "account_id": "10032", "num_bets": 50, "total_bet_amount": 1050, "total_win_amount": 920, "currency": "GBP" } }
响应对象中的对象/Key类型描述
resultJSON 对象Key 结果包含 JSON 对象作为值
status字符串响应状态
username字符串玩家的用户名
account_id整数玩家的帐户 ID
num_bets整数玩家在给定时间段内投注的次数
total_bet_amount整数玩家在给定时间段内下注的总金额
total_win_amount整数玩家在给定时间内赢得的总金额
currency字符串3个字母的ISO货币代码