GetBalance() API

此 API 请求的参数将是token/session_id和玩家帐户 ID。 响应将包含玩家余额的详细信息。

GetBalance() 请求

类型输入
HTTP 方法POST
API URL由运营商提供
标头"Content-Type": "application/json"
POST 参数json 对象 e.g.:

{
"token": "3c2ef39d02581e2db3ddf6c713e83e05",
"account_id": "123123"
}
参数类型描述
token字符串分配给每个玩家的唯一字符串
account_id字符串玩家的帐号 ID

GetBalance() 响应 + 示例

{ "status": 1, "account_id": "123123", "country": "US", "token": "3c2ef39d02581e2db3ddf6c713e83e05", "balance": 12345, "currency": "USD", "bonus_amount": "10" }
响应对象中的对象/Key类型描述
status整数响应状态
account_id字符串玩家的帐号 ID
country字符串玩家的国家
token字符串分配给每个玩家的唯一字符串 (会话 ID)
balance整数玩家的余额
currency字符串玩家的货币
bonus_amount整数玩家钱包中可用的奖励金额。 如果此金额不可用,请发送 0 值。