踢除會員
curl --request POST \
--url https://your-api-host/vendor/v2.0/member/kick \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"channelID": 123,
"account": "<string>",
"sign": "<string>"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/member/kick",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'channelID' => 123,
'account' => '<string>',
'sign' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({channelID: 123, account: '<string>', sign: '<string>'})
};
fetch('https://your-api-host/vendor/v2.0/member/kick', 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/member/kick"
payload = {
"channelID": 123,
"account": "<string>",
"sign": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": "",
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
會員
踢除會員
POST
/
vendor
/
v2.0
/
member
/
kick
踢除會員
curl --request POST \
--url https://your-api-host/vendor/v2.0/member/kick \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"channelID": 123,
"account": "<string>",
"sign": "<string>"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/member/kick",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'channelID' => 123,
'account' => '<string>',
'sign' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({channelID: 123, account: '<string>', sign: '<string>'})
};
fetch('https://your-api-host/vendor/v2.0/member/kick', 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/member/kick"
payload = {
"channelID": 123,
"account": "<string>",
"sign": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": "",
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}
- 將指定會員正在進行中的所有遊戲強制踢除。
請求參數
number
必填
參與簽章
渠道編號 (若無渠道,請帶入1)
string
必填
參與簽章
會員帳號 (允許字元:
a-z A-Z 0-9 _-)回應
成功(HTTP 狀態碼固定為 200,請以status.code 判斷結果)
string | null
此 API 不回傳資料
object
{
"data": "",
"status": {
"code": "0",
"message": "success",
"datetime": "2022-07-01T10:13:54.920+08:00",
"traceCode": "7cf25e1957cc47fe8e01f1a7c6d504d6"
}
}