#

Description
- Access the server end and obtain the game information based on mg_id. 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 |
mg_id |
Yes |
string |
The game ID. |
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
{
"mg_id":"1461228410184400899",
"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 |
The response data. |
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": {
"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]}"
}
]
}
}
}