取得會員報表
curl --request GET \
--url https://your-api-host/vendor/v2.0/report/member \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/report/member",
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/report/member', 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/report/member"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"memberList": [
{
"channelID": 1,
"account": "player001",
"currency": "CNY",
"betCount": 1,
"totalBet": 0.5,
"totalPayout": 0,
"totalWinLose": -0.5
}
]
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-04T23:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
帳務與服務檢查
取得會員報表
GET
/
vendor
/
v2.0
/
report
/
member
取得會員報表
curl --request GET \
--url https://your-api-host/vendor/v2.0/report/member \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/report/member",
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/report/member', 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/report/member"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"memberList": [
{
"channelID": 1,
"account": "player001",
"currency": "CNY",
"betCount": 1,
"totalBet": 0.5,
"totalPayout": 0,
"totalWinLose": -0.5
}
]
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-04T23:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 注單最大保留時間為3個月。
- 此服務按照渠道編號、會員帳號、使用幣別進行分組,三個條件皆相同才會加總為同一筆資料。
- 此服務資料顆粒度精確至小時,使用特定時間格式為 RFC3339(小時) (ex:2022-01-01T00+08:00 ),時間內容須精確至小時,且包含時區資訊。
- 此服務有連線次數限制,限制為每天限制呼叫 80 次 (80/d)
- 按照下注時間大於等於起始時間且小於結束時間的注單進行加總。
- 限制最大查詢區間為31天。
請求參數
number
必填
參與簽章
渠道編號 (無渠道請帶入1,帶入0查詢全部)
string
必填
參與簽章
搜尋起始時間 (使用特定時間格式)
string
必填
參與簽章
搜尋結束時間 (使用特定時間格式)
回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
object
object
{
"data": {
"memberList": [
{
"channelID": 1,
"account": "player001",
"currency": "CNY",
"betCount": 1,
"totalBet": 0.5,
"totalPayout": 0,
"totalWinLose": -0.5
}
]
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-04T23:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}