#

Description
- Access the server end and obtain the game list. We recommend that the client accesses the Sud server directly. Data is locally cached.
Request URL
Request method
- https
- POST
- Parameters are in JSON format and included in the request body.
- Content-Type: application/json needs to be added to the header.
- Add the following headers to the request: Authentication Request Header Authorization
Request parameters
Parameter |
Required |
Type |
Description |
platform |
No |
int |
The client platform (default:1) 1:iOS 2:Android 3:Web |
unity_engine_version |
No |
string |
The unity engine version (default:2020.3.25f1c1) |
Sample requests
{
"platform":1,
"unity_engine_version":"2020.3.25f1c1"
}
Response parameters
|参数名|必选|类型|说明|
| Parameter | Required | Type | Description |
|:---- |:---|:----- |----- |
| ret_code | Yes | int | The response code. |
| ret_msg | Yes | string | The response information. |
| data | Yes | mg_info_list | The response data. |
Parameter |
Required |
Type |
Description |
mg_info_list |
Yes |
list |
The game information list. For more information about internal element definition, see "MgInfo". |
Parameter |
Required |
Type |
Description |
mg_id |
Yes |
string |
The game ID. |
name |
Yes |
json |
The game name. |
desc |
Yes |
json |
The game description. |
thumbnail332x332 |
Yes |
json |
The URL of the image. The image size is 332 x 332 pixels. |
thumbnail192x192 |
Yes |
json |
The URL of the image. The image size is 192 x 192 pixels. |
thumbnail128x128 |
Yes |
json |
The URL of the image. The image size is 128 x 128 pixels. |
thumbnail80x80 |
Yes |
json |
The URL of the image. The image size is 80 x 80 pixels. |
big_loading_pic |
Yes |
json |
The URL of the background image. |
game_mode_list |
Yes |
array |
The game mode list. |
Parameter |
Required |
Type |
Description |
mode |
Yes |
int |
The mode ID. |
count |
Yes |
list |
The number of users required by the game. Valid values: 0: the minimum number of users; 1: the maximum number of users. |
team_count |
Yes |
list |
The number of teams required by the game. Valid values: 0: the minimum number of users; 1: the maximum number of users. |
team_member_count |
Yes |
list |
The number of players per team required for the game. Valid values: 0: the minimum number of users; 1: the maximum number of users. |
rule |
Yes |
json |
The game rule |
Sample responses
{
"ret_code": 0,
"ret_msg": "",
"data": {
"mg_info_list": [
{
"mg_id": "1461227817776713818",
"name": {
"default": "Bumper Blaster",
"en-US": "Bumper Blaster",
"zh-SG": "碰碰我最强",
"zh-HK": "碰碰我最強",
"zh-TW": "碰碰我最強",
"zh-MO": "碰碰我最強",
"ms-BN": "Bumper",
"ms-MY": "Bumper",
"zh-CN": "碰碰我最强",
"en-GB": "Bumper Blaster"
},
"desc": {
"default": "Bumper Blaster",
"en-US": "Bumper Blaster",
"zh-SG": "碰碰我最强",
"zh-HK": "碰碰我最強",
"zh-TW": "碰碰我最強",
"zh-MO": "碰碰我最強",
"ms-BN": "Bumper",
"ms-MY": "Bumper",
"zh-CN": "碰碰我最强",
"en-GB": "Bumper Blaster"
},
"thumbnail332x332": {
"default": "https://sim-sud-static.sudden.ltd/game/bumper/332.png",
"zh-HK": "https://sim-sud-static.sudden.ltd/game/bumper/332.png",
"zh-CN": "https://sim-sud-static.sudden.ltd/game/bumper/332.png"
},
"thumbnail192x192": {
"default": "https://sim-sud-static.sudden.ltd/game/bumper/192.png",
"zh-HK": "https://sim-sud-static.sudden.ltd/game/bumper/192.png",
"zh-CN": "https://sim-sud-static.sudden.ltd/game/bumper/192.png"
},
"thumbnail128x128": {
"default": "https://sim-sud-static.sudden.ltd/game/bumper/128.png",
"zh-HK": "https://sim-sud-static.sudden.ltd/game/bumper/128.png",
"zh-CN": "https://sim-sud-static.sudden.ltd/game/bumper/128.png"
},
"thumbnail80x80": {
"default": "https://sim-sud-static.sudden.ltd/game/bumper/80.png",
"zh-HK": "https://sim-sud-static.sudden.ltd/game/bumper/80.png",
"zh-CN": "https://sim-sud-static.sudden.ltd/game/bumper/80.png"
},
"big_loading_pic": {
"default": "https://sim-sud-static.sudden.ltd/game/bumper/bg.jpg",
"zh-HK": "https://sim-sud-static.sudden.ltd/game/bumper/bg.jpg",
"zh-CN": "https://sim-sud-static.sudden.ltd/game/bumper/bg.jpg"
},
"game_mode_list": [
{
"mode": 1,
"count": [
2,
9
],
"team_count": [
2,
9
],
"team_member_count": [
1,
1
],
"rule": "{\"round\": 8, \"luckBar\": 0, \"roundTime\": 15, \"battleSpeed\": [0, 120, 115, 110, 105, 100, 95, 90, 85]}"
}
]
},
{
"mg_id": "1461228410184400899",
"name": {
"default": "Draw Guess",
"en-US": "Draw Guess",
"zh-SG": "你画我猜",
"zh-HK": "你畫我猜",
"zh-TW": "你畫我猜",
"zh-MO": "你畫我猜",
"ms-BN": "Lukis Tebak",
"ms-MY": "Lukis Tebak",
"zh-CN": "你画我猜",
"en-GB": "Draw Guess"
},
"desc": {
"default": "Draw Guess",
"en-US": "Draw Guess",
"zh-SG": "你画我猜",
"zh-HK": "你畫我猜",
"zh-TW": "你畫我猜",
"zh-MO": "你畫我猜",
"ms-BN": "Lukis Tebak",
"ms-MY": "Lukis Tebak",
"zh-CN": "你画我猜",
"en-GB": "Draw Guess"
},
"thumbnail332x332": {
"default": "https://sim-sud-static.sudden.ltd/game/drawandguess/332.png",
"zh-HK": "https://sim-sud-static.sudden.ltd/game/drawandguess/332.png",
"zh-CN": "https://sim-sud-static.sudden.ltd/game/drawandguess/332.png"
},
"thumbnail192x192": {
"default": "https://sim-sud-static.sudden.ltd/game/drawandguess/192.png",
"zh-HK": "https://sim-sud-static.sudden.ltd/game/drawandguess/192.png",
"zh-CN": "https://sim-sud-static.sudden.ltd/game/drawandguess/192.png"
},
"thumbnail128x128": {
"default": "https://sim-sud-static.sudden.ltd/game/drawandguess/128.png",
"zh-HK": "https://sim-sud-static.sudden.ltd/game/drawandguess/128.png",
"zh-CN": "https://sim-sud-static.sudden.ltd/game/drawandguess/128.png"
},
"thumbnail80x80": {
"default": "https://sim-sud-static.sudden.ltd/game/drawandguess/80.png",
"zh-HK": "https://sim-sud-static.sudden.ltd/game/drawandguess/80.png",
"zh-CN": "https://sim-sud-static.sudden.ltd/game/drawandguess/80.png"
},
"big_loading_pic": {
"default": "https://sim-sud-static.sudden.ltd/game/drawandguess/bg.jpg",
"zh-HK": "https://sim-sud-static.sudden.ltd/game/drawandguess/bg.jpg",
"zh-CN": "https://sim-sud-static.sudden.ltd/game/drawandguess/bg.jpg"
},
"game_mode_list": [
{
"mode": 1,
"count": [
2,
9
],
"team_count": [
2,
9
],
"team_member_count": [
1,
1
],
"rule": "{\"drawingTime\": 90, \"chooseWordTime\": 20, \"nft_text_color\": \"#39677AFF\", \"nft_text_bubble\": 1, \"self_text_color\": \"#EC5D7C\", \"text_passage_num\": 3, \"answer_text_color\": \"#39677AFF\", \"default_text_color\": \"#39677AFF\", \"passage_text_speed\": [200, 200, 200]}"
}
]
}
]
}
}