取得免費旋轉派發卡列表
curl --request GET \
--url https://your-api-host/vendor/v2.0/freespin/grant \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/freespin/grant",
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/grant', 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/grant"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"grantList": [
{
"eventID": "qwertyuiop1234569876541",
"grantID": "zaqwsxcder1234569879999",
"channelID": 1,
"memberAccount": "test123",
"status": "Active",
"totalSpinTimes": 50,
"usedSpinTimes": 48,
"paidAmount": 12.34,
"paidCount": 45,
"grantedAt": "2022-07-01T10:13:54.920+08:00",
"completedAt": null,
"frozenAt": null,
"expiredAt": null
}
],
"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
/
grant
取得免費旋轉派發卡列表
curl --request GET \
--url https://your-api-host/vendor/v2.0/freespin/grant \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/freespin/grant",
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/grant', 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/grant"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"grantList": [
{
"eventID": "qwertyuiop1234569876541",
"grantID": "zaqwsxcder1234569879999",
"channelID": 1,
"memberAccount": "test123",
"status": "Active",
"totalSpinTimes": 50,
"usedSpinTimes": 48,
"paidAmount": 12.34,
"paidCount": 45,
"grantedAt": "2022-07-01T10:13:54.920+08:00",
"completedAt": null,
"frozenAt": null,
"expiredAt": null
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 1
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 依活動與渠道查詢派發卡,支援會員帳號過濾與分頁。
請求參數
number
必填
參與簽章
渠道編號(若無渠道,請帶入1)
string
必填
參與簽章
活動編號 (24 碼 hex)
string
參與簽章
會員帳號(允許字元:
a-z A-Z 0-9 _-)string
參與簽章
查詢憑證 (初次查詢帶入空白,之後應帶入前一次結果的nextToken)
number
必填
參與簽章
返回限制筆數 (最小2000筆,最大5000筆)
回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
object
顯示 屬性
顯示 屬性
object[]
派發卡列表
顯示 屬性
顯示 屬性
string
活動編號
string
派發卡編號
number
渠道編號
string
會員帳號
string
狀態 (New / Active / Completed / Freeze / Expired / SettleFailed)
number
派發時贈送的免費旋轉次數
number
已使用次數
number
已實際入錢包的派彩總額
number
已派彩次數
number
下次查詢憑證(最後一次查詢返回空字串)
number
返回限制筆數
number
本次查詢總筆數
object
{
"data": {
"grantList": [
{
"eventID": "qwertyuiop1234569876541",
"grantID": "zaqwsxcder1234569879999",
"channelID": 1,
"memberAccount": "test123",
"status": "Active",
"totalSpinTimes": 50,
"usedSpinTimes": 48,
"paidAmount": 12.34,
"paidCount": 45,
"grantedAt": "2022-07-01T10:13:54.920+08:00",
"completedAt": null,
"frozenAt": null,
"expiredAt": null
}
],
"nextToken": "gdfv5451gg5574fs",
"maxResults": 2000,
"total": 1
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}