free_count.md 1.2 KB

Get Free Game Count

##description

Get the remaining number of games in the player's free game

Request method:( Host-> BeSoft):post

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

Besoft The response data format is: application/json

Method URL

{besoftapi}/api/game/userfree

Request Parameters

| Name | Type | Required |Description| |:--------:|:-----:|:--------:|:--------:| | cert | string | Y |security code| | extension1 | string | Y |Agent ID| | useracc | string | Y |Player ID|

Example

  • URL:
  • HTTP Method
    • POST
  • Form Data

    Content-Type: application/x-www-form-urlencoded

    cert:v8VMKKzlPpD0te4rX99Hgefs3PQrBFWJKiuUqg6Y
    extension1:adminweb
    useracc:test1
    

Return Result

| Name | Type | Description | |:--------:|:-----:|:--------:| | status | int32 | status code | | gidfree | array | Game list| | gidfree.gid | string | GameID| | gidfree.freecount | int32 | Freecount|

## Success Result

{
	"status": 1,
	"gidfree": [
		{
			"gid": "be0002",
			"freecount": 22
		}
	]
}

## Failed Result

{
	"ret": 10,
	"info": "user not exist"
}