取得注單詳細資訊
curl --request GET \
--url https://your-api-host/vendor/v2.0/betlog/detail \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/betlog/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://your-api-host/vendor/v2.0/betlog/detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-api-host/vendor/v2.0/betlog/detail"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"betID": "91531545415",
"wagersID": 91531545415,
"betTime": "2022-06-16T22:54:29.649+08:00",
"createTime": "2022-06-16T22:54:29.649+08:00",
"url": "http://xxx.xxx.xxx/xxx/xxx?xx=xx&xx=xx"
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
注單
取得注單詳細資訊
GET
/
vendor
/
v2.0
/
betlog
/
detail
取得注單詳細資訊
curl --request GET \
--url https://your-api-host/vendor/v2.0/betlog/detail \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/betlog/detail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://your-api-host/vendor/v2.0/betlog/detail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://your-api-host/vendor/v2.0/betlog/detail"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"betID": "91531545415",
"wagersID": 91531545415,
"betTime": "2022-06-16T22:54:29.649+08:00",
"createTime": "2022-06-16T22:54:29.649+08:00",
"url": "http://xxx.xxx.xxx/xxx/xxx?xx=xx&xx=xx"
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 查詢指定注單下注時間與遊戲結果。
請求參數
string
必填
參與簽章
注單編號 (允許字元:
a-z A-Z 0-9 _-)回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
object
object
{
"data": {
"betID": "91531545415",
"wagersID": 91531545415,
"betTime": "2022-06-16T22:54:29.649+08:00",
"createTime": "2022-06-16T22:54:29.649+08:00",
"url": "http://xxx.xxx.xxx/xxx/xxx?xx=xx&xx=xx"
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}