取得遊戲連結
curl --request GET \
--url https://your-api-host/vendor/v2.0/game/link \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/game/link",
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/link', 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/link"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"url": "http://xxx-xx.xxxx/xxxx.xxxx?xx=xxxxxxxxx",
"token": "35f990b7adda4cb9a25601cf6bf690bd"
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
遊戲
取得遊戲連結
GET
/
vendor
/
v2.0
/
game
/
link
取得遊戲連結
curl --request GET \
--url https://your-api-host/vendor/v2.0/game/link \
--header 'Authorization: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/game/link",
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/link', 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/link"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"url": "http://xxx-xx.xxxx/xxxx.xxxx?xx=xxxxxxxxx",
"token": "35f990b7adda4cb9a25601cf6bf690bd"
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 遊戲連結有效時間為300秒,超過有效時間未登入該連結即失效無法使用。
- 遊戲僅允許會員單開視窗遊玩。
- 若app參數傳入Y,我方會將遊戲中詳單列表按鈕移除,若貴司有查看詳單需求,可以透過4.2 取得注單詳細資訊取得詳單。
- 遊戲編號帶入0,取得遊戲大廳連結,其他請帶入遊戲編號。
請求參數
number
required
參與簽章
渠道編號 (若無渠道,請帶入1)
string
required
參與簽章
會員帳號 (允許字元:
a-z A-Z 0-9 _-)string
required
參與簽章
幣別 (請洽詢我方商務)
number
required
參與簽章
遊戲編號 (0:遊戲大廳,非0:遊戲編號)
string
required
參與簽章
遊戲開啟平台 (請填入 web 或 mobile)
string
required
參與簽章
透過app開啟 (Y:將隱藏遊戲紀錄功能 N:不隱藏)
string
required
參與簽章
遊戲語系 (請洽詢我方商務)
string
required
參與簽章
玩家IP
string
返回網址 (需以http://或https://開頭)
boolean
關閉音樂 (true:關閉、false:不關閉,預設false)
boolean
關閉音效 (true:關閉、false:不關閉,預設false)
回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
object
{
"data": {
"url": "http://xxx-xx.xxxx/xxxx.xxxx?xx=xxxxxxxxx",
"token": "35f990b7adda4cb9a25601cf6bf690bd"
},
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}