取得玩家限紅
curl --request GET \
--url https://api.example.com/api/v1/dt/user/limitimport requests
url = "https://api.example.com/api/v1/dt/user/limit"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/dt/user/limit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/dt/user/limit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/dt/user/limit"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/dt/user/limit")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/dt/user/limit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"error": {
"code": 0,
"msg": "Success",
"uuid": "c176c773-f0f5-41f3-8f2e-9c0938d50a75"
},
"data": {
"product-id": "AXTES",
"currency": "TWD",
"limit-set": [
"0",
"Y"
],
"limit-detail": [
{
"limit-id": "0",
"detail": [
{
"game-type": "BAC",
"limit": [
{
"play-type": [
1,
2
],
"min": 100,
"max": 100000
},
{
"play-type": [
3
],
"min": 100,
"max": 12500
},
{
"play-type": [
4,
5
],
"min": 100,
"max": 9000
},
{
"play-type": [
6
],
"min": 100,
"max": 8000
}
]
},
{
"game-type": "DTB",
"limit": [
{
"play-type": [
1,
2,
4,
5,
6,
7,
8,
9,
10,
11
],
"min": 1000,
"max": 100000
},
{
"play-type": [
3
],
"min": 100,
"max": 12500
}
]
},
{
"game-type": "NIU",
"limit": [
{
"play-type": [
1,
2
],
"min": 1000,
"max": 100000
},
{
"play-type": [
3,
4
],
"min": 100,
"max": 20000
},
{
"play-type": [
5,
6
],
"min": 100,
"max": 2000
}
]
},
{
"game-type": "ROU",
"limit": [
{
"play-type": [
1
],
"min": 1000,
"max": 100000
},
{
"play-type": [
2
],
"min": 1000,
"max": 50000
},
{
"play-type": [
3
],
"min": 100,
"max": 20000
},
{
"play-type": [
4
],
"min": 100,
"max": 12500
},
{
"play-type": [
5
],
"min": 100,
"max": 9000
},
{
"play-type": [
6
],
"min": 100,
"max": 5500
},
{
"play-type": [
7
],
"min": 100,
"max": 2500
},
{
"play-type": [
8
],
"min": 100,
"max": 16500
}
]
}
]
},
{
"limit-id": "Y",
"detail": [
{
"game-type": "BAC",
"limit": [
{
"play-type": [
1,
2
],
"min": 10000,
"max": 500000
},
{
"play-type": [
3
],
"min": 100,
"max": 62500
},
{
"play-type": [
4,
5
],
"min": 100,
"max": 45000
},
{
"play-type": [
6
],
"min": 100,
"max": 41500
}
]
},
{
"game-type": "DTB",
"limit": [
{
"play-type": [
1,
2,
4,
5,
6,
7,
8,
9,
10,
11
],
"min": 10000,
"max": 500000
},
{
"play-type": [
3
],
"min": 100,
"max": 62500
}
]
},
{
"game-type": "NIU",
"limit": [
{
"play-type": [
1,
2
],
"min": 10000,
"max": 500000
},
{
"play-type": [
3,
4
],
"min": 100,
"max": 100000
},
{
"play-type": [
5,
6
],
"min": 100,
"max": 10000
}
]
},
{
"game-type": "ROU",
"limit": [
{
"play-type": [
1
],
"min": 10000,
"max": 500000
},
{
"play-type": [
2
],
"min": 10000,
"max": 250000
},
{
"play-type": [
3
],
"min": 100,
"max": 100000
},
{
"play-type": [
4
],
"min": 100,
"max": 62500
},
{
"play-type": [
5
],
"min": 100,
"max": 45000
},
{
"play-type": [
6
],
"min": 100,
"max": 29000
},
{
"play-type": [
7
],
"min": 100,
"max": 14000
},
{
"play-type": [
8
],
"min": 100,
"max": 83000
}
]
}
]
}
]
}
}{
"error": {
"code": 2,
"msg": "request hash signature(0FACF22B9E3DB5CDC670A0F7A65BB76A) is error",
"uuid": "9e96610f-5388-42df-b3ed-ba1b3178c63b"
}
}Game API
取得玩家限紅
取得玩家限紅設定
GET
/
api
/
v1
/
dt
/
user
/
limit
取得玩家限紅
curl --request GET \
--url https://api.example.com/api/v1/dt/user/limitimport requests
url = "https://api.example.com/api/v1/dt/user/limit"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/dt/user/limit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/dt/user/limit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/dt/user/limit"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/dt/user/limit")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/dt/user/limit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"error": {
"code": 0,
"msg": "Success",
"uuid": "c176c773-f0f5-41f3-8f2e-9c0938d50a75"
},
"data": {
"product-id": "AXTES",
"currency": "TWD",
"limit-set": [
"0",
"Y"
],
"limit-detail": [
{
"limit-id": "0",
"detail": [
{
"game-type": "BAC",
"limit": [
{
"play-type": [
1,
2
],
"min": 100,
"max": 100000
},
{
"play-type": [
3
],
"min": 100,
"max": 12500
},
{
"play-type": [
4,
5
],
"min": 100,
"max": 9000
},
{
"play-type": [
6
],
"min": 100,
"max": 8000
}
]
},
{
"game-type": "DTB",
"limit": [
{
"play-type": [
1,
2,
4,
5,
6,
7,
8,
9,
10,
11
],
"min": 1000,
"max": 100000
},
{
"play-type": [
3
],
"min": 100,
"max": 12500
}
]
},
{
"game-type": "NIU",
"limit": [
{
"play-type": [
1,
2
],
"min": 1000,
"max": 100000
},
{
"play-type": [
3,
4
],
"min": 100,
"max": 20000
},
{
"play-type": [
5,
6
],
"min": 100,
"max": 2000
}
]
},
{
"game-type": "ROU",
"limit": [
{
"play-type": [
1
],
"min": 1000,
"max": 100000
},
{
"play-type": [
2
],
"min": 1000,
"max": 50000
},
{
"play-type": [
3
],
"min": 100,
"max": 20000
},
{
"play-type": [
4
],
"min": 100,
"max": 12500
},
{
"play-type": [
5
],
"min": 100,
"max": 9000
},
{
"play-type": [
6
],
"min": 100,
"max": 5500
},
{
"play-type": [
7
],
"min": 100,
"max": 2500
},
{
"play-type": [
8
],
"min": 100,
"max": 16500
}
]
}
]
},
{
"limit-id": "Y",
"detail": [
{
"game-type": "BAC",
"limit": [
{
"play-type": [
1,
2
],
"min": 10000,
"max": 500000
},
{
"play-type": [
3
],
"min": 100,
"max": 62500
},
{
"play-type": [
4,
5
],
"min": 100,
"max": 45000
},
{
"play-type": [
6
],
"min": 100,
"max": 41500
}
]
},
{
"game-type": "DTB",
"limit": [
{
"play-type": [
1,
2,
4,
5,
6,
7,
8,
9,
10,
11
],
"min": 10000,
"max": 500000
},
{
"play-type": [
3
],
"min": 100,
"max": 62500
}
]
},
{
"game-type": "NIU",
"limit": [
{
"play-type": [
1,
2
],
"min": 10000,
"max": 500000
},
{
"play-type": [
3,
4
],
"min": 100,
"max": 100000
},
{
"play-type": [
5,
6
],
"min": 100,
"max": 10000
}
]
},
{
"game-type": "ROU",
"limit": [
{
"play-type": [
1
],
"min": 10000,
"max": 500000
},
{
"play-type": [
2
],
"min": 10000,
"max": 250000
},
{
"play-type": [
3
],
"min": 100,
"max": 100000
},
{
"play-type": [
4
],
"min": 100,
"max": 62500
},
{
"play-type": [
5
],
"min": 100,
"max": 45000
},
{
"play-type": [
6
],
"min": 100,
"max": 29000
},
{
"play-type": [
7
],
"min": 100,
"max": 14000
},
{
"play-type": [
8
],
"min": 100,
"max": 83000
}
]
}
]
}
]
}
}{
"error": {
"code": 2,
"msg": "request hash signature(0FACF22B9E3DB5CDC670A0F7A65BB76A) is error",
"uuid": "9e96610f-5388-42df-b3ed-ba1b3178c63b"
}
}此 API 可能返回的錯誤代碼
此 API 可能返回的錯誤代碼
| 代碼 | 說明 |
|---|---|
| 0 | 成功 |
| 2 | 無效參數 |
| 4 | 客戶不存在 |
| 19 | 請求次數已達上限 |
| 20 | Secret key 錯誤 |
| 21 | 非法用戶名稱 |
| 36 | 伺服器錯誤 |
| 42 | 請求頻率太高 |
| 9999 | 未知錯誤 |
⌘I