取得玩家提領紀錄
curl --request GET \
--url https://your-api-host/vendor/v2.0/freespin/withdraw \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/freespin/withdraw",
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/withdraw', 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/withdraw"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"withdrawList": [
{
"eventID": "abccc1234567890aaaaa1254",
"grantID": "abcaa1234567890aaaaa3333",
"trsID": "test1231231",
"channelID": 1,
"account": "test123",
"currency": "CNY",
"triggerRecordID": "efr34123",
"triggerType": "PER_SPIN",
"before": 23.59,
"withdrawalAmount": 1,
"after": 24.59,
"settledAt": "2022-07-01T10:13:54.920+08:00"
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 2000
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
免費旋轉
取得玩家提領紀錄
GET
/
vendor
/
v2.0
/
freespin
/
withdraw
取得玩家提領紀錄
curl --request GET \
--url https://your-api-host/vendor/v2.0/freespin/withdraw \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/freespin/withdraw",
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/withdraw', 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/withdraw"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"withdrawList": [
{
"eventID": "abccc1234567890aaaaa1254",
"grantID": "abcaa1234567890aaaaa3333",
"trsID": "test1231231",
"channelID": 1,
"account": "test123",
"currency": "CNY",
"triggerRecordID": "efr34123",
"triggerType": "PER_SPIN",
"before": 23.59,
"withdrawalAmount": 1,
"after": 24.59,
"settledAt": "2022-07-01T10:13:54.920+08:00"
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 2000
},
"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[]
number
下次查詢憑證(最後一次查詢返回空字串)
number
返回限制筆數
number
本次查詢總筆數
object
{
"data": {
"withdrawList": [
{
"eventID": "abccc1234567890aaaaa1254",
"grantID": "abcaa1234567890aaaaa3333",
"trsID": "test1231231",
"channelID": 1,
"account": "test123",
"currency": "CNY",
"triggerRecordID": "efr34123",
"triggerType": "PER_SPIN",
"before": 23.59,
"withdrawalAmount": 1,
"after": 24.59,
"settledAt": "2022-07-01T10:13:54.920+08:00"
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 2000
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}