# 获得游戏列表 ## 描述 > 获取子游戏列表 > 请求方式( Host-> BeSoft):post > 编码方式:application/x-www-form-urlencoded > Besoft响应的数据格式是: application/json ## 网址 > {besoftapi}/api/game/subgamelist ## 示例 - URL: - http://127.0.0.1:8000/api/game/subgamelist - HTTP Method(请求方式) - POST/GET - 表单数据 > Content-Type: application/x-www-form-urlencoded ``` extension1:testadmin ``` ## 请求参数 | 名称 | 类型 | 必要 | 描述 | | -------- | -------- | -------- | -------- | | extension1 | string | Y | 商户账号 | ## 成功结果的参数解析 | 名称 | 类型 | 必要 | 描述 | | -------- | -------- | -------- | -------- | | gameicourl | string | Y | 请求游戏入口icon地址 | | gametype |string | Y | 游戏类型 | | gid| string(20) | Y | 进入游戏的唯一id | ### 成功的结果 ``` { "gameicourl": "http://127.0.0.1:8000/gameicon", "gamelist": [ { "gid": "be001", "name": "Dragon Stash", "gametype": "1" }, { "gid": "be002", "name": "Jungle Fruit", "gametype": "1" } ] } ``` ## 失败的结果 ```json { "ret": 1616, "info": "ip address error" } ``` ## 请求游戏入口icon地址的拼接方法 > gameicourl+/+ gid+"_"+语言编码+".png" ## Icon获取示例 ``` http://127.0.0.1:8000/gameicon/be001_en.png ```