查詢遊戲紀錄
curl --request GET \
--url https://api.example.com/api/v1/dt/betsimport requests
url = "https://api.example.com/api/v1/dt/bets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/dt/bets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/dt/bets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/dt/bets"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/dt/bets")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/dt/bets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "Success",
"error": {
"uuid": "973ff058-54e9-4c8b-8c6c-6fecb76a13bb"
},
"pageindex": 6,
"pagesize": 300,
"pagetotal": 50,
"totalrecord": 15000,
"records": [
{
"consumption": "500",
"createtime": 1763716819,
"ordernumber": "TIPS251121172018lobby2-0000001",
"playtype": 9,
"type": 2,
"username": "player001",
"room_account": "9D",
"room_name": "9d01"
},
{
"betamount": "3000",
"betincome": "3000",
"betreward": "6000",
"betscore": "3000",
"createtime": 1763716799,
"gamecode": "9D1425B211DT",
"gametype": "BAC",
"ordernumber": "9D14251121171959020000013",
"playtype": 2,
"reckontime": 1763716821,
"status": 1,
"table": "9D14",
"type": 1,
"username": "player001",
"rolling_amount": "3000",
"room_account": "BYTRP",
"room_name": "TRP01"
}
]
}{
"error": {
"code": 2,
"msg": "request hash signature(0FACF22B9E3DB5CDC670A0F7A65BB76A) is error",
"uuid": "9e96610f-5388-42df-b3ed-ba1b3178c63b"
}
}Report API
查詢遊戲紀錄
查詢注單
GET
/
api
/
v1
/
dt
/
bets
查詢遊戲紀錄
curl --request GET \
--url https://api.example.com/api/v1/dt/betsimport requests
url = "https://api.example.com/api/v1/dt/bets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/dt/bets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/dt/bets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/dt/bets"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/dt/bets")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/dt/bets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"code": 0,
"msg": "Success",
"error": {
"uuid": "973ff058-54e9-4c8b-8c6c-6fecb76a13bb"
},
"pageindex": 6,
"pagesize": 300,
"pagetotal": 50,
"totalrecord": 15000,
"records": [
{
"consumption": "500",
"createtime": 1763716819,
"ordernumber": "TIPS251121172018lobby2-0000001",
"playtype": 9,
"type": 2,
"username": "player001",
"room_account": "9D",
"room_name": "9d01"
},
{
"betamount": "3000",
"betincome": "3000",
"betreward": "6000",
"betscore": "3000",
"createtime": 1763716799,
"gamecode": "9D1425B211DT",
"gametype": "BAC",
"ordernumber": "9D14251121171959020000013",
"playtype": 2,
"reckontime": 1763716821,
"status": 1,
"table": "9D14",
"type": 1,
"username": "player001",
"rolling_amount": "3000",
"room_account": "BYTRP",
"room_name": "TRP01"
}
]
}{
"error": {
"code": 2,
"msg": "request hash signature(0FACF22B9E3DB5CDC670A0F7A65BB76A) is error",
"uuid": "9e96610f-5388-42df-b3ed-ba1b3178c63b"
}
}此 API 可能返回的錯誤代碼
此 API 可能返回的錯誤代碼
| 代碼 | 說明 |
|---|---|
| 0 | 成功 |
| 2 | 無效參數 |
| 9 | 查詢日期範圍過大 |
| 19 | 請求次數已達上限 |
| 20 | Secret key 錯誤 |
| 23 | 非法時間戳記 |
| 25 | 類型參數錯誤 |
| 26 | 分頁大小參數錯誤 |
| 27 | 分頁索引參數錯誤 |
| 36 | 伺服器錯誤 |
| 9999 | 未知錯誤 |
查詢參數
各平台自定義的唯一性請求序號,長度 >= 32 且 <= 128 字節
平台方的產品 ID
開始時間戳記 (UNIX timestamp 格式,以秒為單位)。注意:此為結算時間,如果注單有透過後台重算或取消,結算時間也會跟著異動
結束時間戳記 (UNIX timestamp 格式,以秒為單位)。與 begintime 的最大差距為 7 天 (168 小時)
單頁筆數 (需介於 100 ~ 10,000 之間)
查詢第幾頁 (從 0 開始遞增)
用戶在遊戲中的帳號(選填)
查詢特定類型的記錄,1 - 投注、2 - 消費;若參數中沒有 type 這個 key,則對全部類型進行查詢
md5(begintime + endtime + pagesize + pageindex + type + username + 平台密鑰)
⌘I