3.10 Query Game List (查询游戏列表)
Description (说明)
This API is used for operators to query the game list.
本功能用于提供运营商查询游戏相关资讯列表。
URL (网址)
https://{host}/api/query_game_list
Request Method
POST
Request Parameters (请求参数)
| Field (栏位) | Type (型态) | Required (必要) | Description (说明) |
|---|---|---|---|
| agentId | String | Y | Agent ID <= 50 characters 代理帐号 |
{
"agentId": "hrgag"
}
Return Result (返回结果)
| Field (栏位) | Type (型态) | Description (说明) |
|---|---|---|
| code | String | Status Code fixed 4 characters 状态码 |
| data | Object | |
| list | Array of Object | Each record |
| status | Boolean | Game enabled status 游戏启用状态 |
| gameType | String | Game Type <= 10 characters 游戏类型 |
| gameCode | String | Game Code <= 20 characters 游戏代码 |
| gameName | Object | Game Name 游戏名称 |
{
"code": "0000",
"data": {
"list": [
{
"status": true,
"gameType": "LIVE",
"gameCode": "BACCARAT",
"gameName": {
"BD": "ব্যাকারত",
"CN": "百家乐",
"EN": "Baccarat",
"ES": "Bacará",
"ID": "Baccarat",
"IN": "बैकारेट",
"JP": "バカラ",
"KH": "បាការ៉ាត់",
"KR": "바카라",
"LA": "ບາກາຣາດ",
"MS": "Baccarat",
"PT": "Bacará",
"TH": "บาคาร่า",
"VN": "Baccarat"
}
},
{
"status": true,
"gameType": "LIVE",
"gameCode": "ROULETTE",
"gameName": {
"BD": "রুলেট",
"CN": "轮盘",
"EN": "Roulette",
"ES": "Ruleta",
"ID": "Rolet",
"IN": "रूले",
"JP": "ルーレット",
"KH": "រ៉ូឡែត",
"KR": "룰렛",
"LA": "ຮູເລັດ",
"MS": "Roulette",
"PT": "Roleta",
"TH": "รูเล็ต",
"VN": "Roulette"
}
},
{
"status": true,
"gameType": "LIVE",
"gameCode": "DRAGON_TIGER",
"gameName": {
"BD": "ড্রাগন টাইগার",
"CN": "龙虎",
"EN": "Dragon Tiger",
"ES": "Dragón Tigre",
"ID": "Naga Harimau",
"IN": "ड्रैगन टाइगर",
"JP": "ドラゴンタイガー",
"KH": "ខ្លានាគ",
"KR": "드래곤 타이거",
"LA": "ພະຍາແຫ່ງນົກ",
"MS": "Dragon Tiger",
"PT": "Dragão Tigre",
"TH": "เสือมังกร",
"VN": "Rồng Hổ"
}
}
]
}
}
Sample Request For Each Language (各语言请求范例)
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"agentId\":\"hrgag\"}");
Request request = new Request.Builder()
.url("https://{host}/api/query_game_list")
.method("POST", body)
.addHeader("Authorization", "Basic TWpNQ0JSM1NFYnBrYXdSNTpNak1DQlIzU0VicGthd1I1")
.addHeader("Content-Type", "application/json")
.build();
Response response = client.newCall(request).execute();