game_list.md 1.4 KB

Get gamelist

Description

Get gamelist

Request mode (Host-> BeSoft) :post

Encoding method: application/x-www-form-urlencoded

The data format of the Besoft response is application/json

Method URL

{besoftapi}/api/game/subgamelist

Example

## Request parameters | Name | Type | Required | Description | | -------- | -------- | -------- | -------- | | extension1 | string | Y | Merchant account |

Parameter analysis of successful results

| Name | Type | Required | Description | | -------- | -------- | -------- | -------- |
| gameicourl | string | Y | Request game entry icon address | | gametype |string | Y | Game Type | | gid| string(20) | Y | Unique id to enter the game |

### Successful Result

{
    "gameicourl": "http://127.0.0.1:8000/gameicon",
    "gamelist": [
        {
            "gid": "be001",
            "name": "Dragon Stash",
            "gametype": "1"
        },
        {
            "gid": "be002",
            "name": "Jungle Fruit",
            "gametype": "1"
        }
    ]
}

The result of failure

 {
	"ret": 1616,
	"info": "ip address error"
}

Method for piecing together the address of the game entrance icon request

Get icon:gameicourl+/+ gid+"_"+Language encoding+".png"

Icon Get example

http://127.0.0.1:8000/gameicon/be001_en.png