取得活動紀錄列表
curl --request GET \
--url https://your-api-host/vendor/v2.0/freespin/listByTime \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/freespin/listByTime",
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/listByTime', 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/listByTime"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"recordList": [
{
"eventID": "abccc1234567890aaaaa1254",
"grantID": "aaaaa1234567890aaaaa9999",
"channelID": 1,
"account": "test123",
"betID": "98756145821545",
"currency": "CNY",
"gameType": "slot",
"gameID": 492,
"betMode": "freespin",
"bet": 0,
"payout": 10,
"winLose": 10,
"betTime": "2022-07-01T10:13:54.920+08:00"
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 1
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
免費旋轉
取得活動紀錄列表
GET
/
vendor
/
v2.0
/
freespin
/
listByTime
取得活動紀錄列表
curl --request GET \
--url https://your-api-host/vendor/v2.0/freespin/listByTime \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/freespin/listByTime",
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/listByTime', 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/listByTime"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"recordList": [
{
"eventID": "abccc1234567890aaaaa1254",
"grantID": "aaaaa1234567890aaaaa9999",
"channelID": 1,
"account": "test123",
"betID": "98756145821545",
"currency": "CNY",
"gameType": "slot",
"gameID": 492,
"betMode": "freespin",
"bet": 0,
"payout": 10,
"winLose": 10,
"betTime": "2022-07-01T10:13:54.920+08:00"
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 1
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 數據保留 60 天,每次搜尋時間區間小於等於 15 分鐘。
請求參數
number
必填
參與簽章
渠道編號 (帶入0代表查詢全部渠道)
string
參與簽章
查詢憑證 (初次查詢帶入空白,之後應帶入前一次結果的nextToken)
number
必填
參與簽章
返回限制筆數 (最小2000筆,最大5000筆)
回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
object
object
{
"data": {
"recordList": [
{
"eventID": "abccc1234567890aaaaa1254",
"grantID": "aaaaa1234567890aaaaa9999",
"channelID": 1,
"account": "test123",
"betID": "98756145821545",
"currency": "CNY",
"gameType": "slot",
"gameID": 492,
"betMode": "freespin",
"bet": 0,
"payout": 10,
"winLose": 10,
"betTime": "2022-07-01T10:13:54.920+08:00"
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 1
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}