取得遊戲列表
curl --request GET \
--url https://your-api-host/vendor/v2.0/game/list \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/game/list",
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/game/list', 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/game/list"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"gameList": [
{
"gameID": 24,
"gameType": "slot",
"gameName": "超級霸",
"currency": [
"CNY",
"JPY",
"MMK"
]
},
{
"gameID": 66,
"gameType": "slot",
"gameName": "世界旅人",
"currency": [
"CNY",
"VND"
]
}
]
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
遊戲
取得遊戲列表
GET
/
vendor
/
v2.0
/
game
/
list
取得遊戲列表
curl --request GET \
--url https://your-api-host/vendor/v2.0/game/list \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/game/list",
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/game/list', 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/game/list"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"gameList": [
{
"gameID": 24,
"gameType": "slot",
"gameName": "超級霸",
"currency": [
"CNY",
"JPY",
"MMK"
]
},
{
"gameID": 66,
"gameType": "slot",
"gameName": "世界旅人",
"currency": [
"CNY",
"VND"
]
}
]
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 遊戲名稱會因應傳入語系參數改變。
- 此服務有連線次數限制,限制為每秒限制呼叫 1 次 (1/s)。
- 每款遊戲皆有其支援幣別,若有需求請洽我方客服人員。
請求參數
回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
object
object
{
"data": {
"gameList": [
{
"gameID": 24,
"gameType": "slot",
"gameName": "超級霸",
"currency": [
"CNY",
"JPY",
"MMK"
]
},
{
"gameID": 66,
"gameType": "slot",
"gameName": "世界旅人",
"currency": [
"CNY",
"VND"
]
}
]
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}