創建會員
curl --request POST \
--url https://your-api-host/vendor/v2.0/member/create \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"channelID": 123,
"account": "<string>",
"currency": "<string>",
"sign": "<string>"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/member/create",
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>',
'currency' => '<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>', currency: '<string>', sign: '<string>'})
};
fetch('https://your-api-host/vendor/v2.0/member/create', 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/create"
payload = {
"channelID": 123,
"account": "<string>",
"currency": "<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
/
create
創建會員
curl --request POST \
--url https://your-api-host/vendor/v2.0/member/create \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"channelID": 123,
"account": "<string>",
"currency": "<string>",
"sign": "<string>"
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-api-host/vendor/v2.0/member/create",
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>',
'currency' => '<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>', currency: '<string>', sign: '<string>'})
};
fetch('https://your-api-host/vendor/v2.0/member/create', 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/create"
payload = {
"channelID": 123,
"account": "<string>",
"currency": "<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"
}
}
- 創建會員時需至少綁定一種幣別,同一會員可以同時擁有多個幣別錢包。
- 相同帳號在不同channel(渠道)會視為不同的會員,如channel-1的player001和channel-2的player001在我方系統中是兩個不同的會員。
- 會員帳號會區分大小寫,aa123、Aa123、aA123、AA123將視為4個不同會員。
請求參數
number
required
參與簽章
渠道編號 (若無渠道,請帶入1)
string
required
參與簽章
會員帳號 (允許字元:
a-z A-Z 0-9 _-)string
required
參與簽章
幣別 (請洽詢我方商務)
回應
成功(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"
}
}