3.5 Query Game Result (获得玩家游戏结果)

Notice (注意事项)

Does not support non-accounting currencies
不支援不计入帐务的币别

Description (说明)

Get player game result url which present the result on web page.
获得玩家游戏结果,以网页(画面)的方式呈现玩家该局游戏结果。

Restrict (限制)

1.Only supports query records within 40 days.
2.Language only supports EN and CN.

1.仅支持查询40天内的纪录。
2.语言仅支持 EN 与 CN。

URL (网址)

https://{host}/api/query_game_result

Request Method

POST

Request Parameters (请求参数)

Field
(栏位)
Type
(型态)
Required
(必要)
Description
(说明)
agentIdStringYAgent ID <= 50 characters
代理帐号
userIdStringYUser ID <= 50 characters
玩家帐号
txIdStringYTransaction Id <= 20 characters
注单号
langStringNLanguage (EN / CN only) fixed 2 characters
语言(仅支持 EN / CN)

default: EN
预设: EN
{
  "agentId": "hrgag",
  "userId": "hrgpl0001",
  "txId": "AAA-123456789",
  "lang": "EN"
}

Return Result (返回结果)

Field
(栏位)
Type
(型态)
Description
(说明)
codeStringStatus Code fixed 4 characters
状态码

Please refer to 5.4 Status Code for details.
详情请参考 5.4 状态代码
dataObject
urlStringReport URL
交易报表网址
{
  "code": "0000",
  "data": {
    "url": "https://{host}/?token=Rq6mw5BWSyLlvSjmDWnNBvry3cPrSeVCSQdlATFhYt6Sn72gt48WrUWE3201PkAlOuQc16mvgoQwqATmyZwozqasBQ%2FI7r12vt%2BbdrMCzLF4fDXXJk%2B51OM8A3ljZHIp4QE5pwmRWlG3nFLDhBzPROb8exOFRBPYgw1y%2BPrpKS8%3D"
  }
}

Sample Request For Each Language (各语言请求范例)

SimpleDateFormat xtsFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
xtsFormat.setTimeZone(TimeZone.getTimeZone("GMT+8"));
String xts = xtsFormat.format(new Date());

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"agentId\":\"hrgag\",\"userId\":\"hrgpl0001\",\"txId\":\"AAA-123456789\",\"lang\":\"EN\"}");
Request request = new Request.Builder()
  .url("https://{host}/api/query_game_result")
  .method("POST", body)
  .addHeader("Authorization", "Basic dGVzdDp0ZXN0")
  .addHeader("xts", xts)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();