取得免費旋轉報表
curl --request GET \
--url https://your-api-host/vendor/v2.0/freespin/report \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/freespin/report",
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/freespin/report', 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/freespin/report"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"totalAmount": 99.99,
"count": 10
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
免費旋轉
取得免費旋轉報表
GET
/
vendor
/
v2.0
/
freespin
/
report
取得免費旋轉報表
curl --request GET \
--url https://your-api-host/vendor/v2.0/freespin/report \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/freespin/report",
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/freespin/report', 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/freespin/report"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"totalAmount": 99.99,
"count": 10
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 統計成功派彩金額與筆數。
- 數據保留 60 天,最大查詢區間 24 小時,每次搜尋區間建議小於等於 60 分鐘分段查詢避免過慢。
請求參數
string
必填
參與簽章
活動編號 (24 碼 hex)
回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
object
{
"data": {
"totalAmount": 99.99,
"count": 10
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}