#
简要描述
- 获取当前app关联的小游戏列表,建议由服务端进行拉取,并在本地缓存
- 当前接口针对每个app_id请求限制频率为10次/秒
请求URL
请求方式
- 传输协议:HTTPS
- 请求方法:POST
- 参数以body传递,格式为json(见请求示例)
- Header中需要添加:Content-Type: application/json;charset=utf-8
- Header中需要添加:认证请求头 Authorization
请求头 [Authorization]
请求参数
参数名 |
必选 |
类型 |
说明 |
platform |
否 |
int |
客户端平台 (默认值为1) 1:iOS 2:Android 3:Web |
unity_engine_version |
否 |
string |
unity游戏引擎版本 (默认2020.3.25f1c1) |
请求示例
{
"platform":1,
"unity_engine_version":"2020.3.25f1c1"
}
返回参数
参数名 |
必选 |
类型 |
说明 |
ret_code |
是 |
int |
响应码 |
ret_msg |
是 |
string |
响应信息 |
data |
是 |
mg_info_list |
响应数据 |
参数名 |
必选 |
类型 |
说明 |
mg_info_list |
是 |
array |
游戏信息列表,内部元素定义见mg_info |
参数名 |
必选 |
类型 |
说明 |
mg_id |
是 |
string |
小游戏id |
name |
是 |
json |
小游戏名字 |
desc |
是 |
json |
小游戏描述 |
thumbnail332x332 |
是 |
json |
图像地址,尺寸: 332*332 |
thumbnail192x192 |
是 |
json |
图像地址,尺寸: 192*192 |
thumbnail128x128 |
是 |
json |
图像地址,尺寸: 128*128 |
thumbnail80x80 |
是 |
json |
图像地址,尺寸: 80*80 |
big_loading_pic |
是 |
json |
背景图像地址 |
game_mode_list |
是 |
array |
游戏模式列表 |
参数名 |
必选 |
类型 |
说明 |
mode |
是 |
int |
模式编号 |
count |
是 |
array |
count[0]: 最小人数,count[1]: 最大人数 |
team_count |
是 |
array |
count[0]: 最小队伍数,count[1]: 最大队伍数 |
team_member_count |
是 |
array |
count[0]: 每队最小人数,count[1]: 每队最大人数 |
rule |
是 |
json |
游戏规则 |
返回示例
{
"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]}"
}
]
}
]
}
}