Enter Game
The integrator initiates a user game entry request to the MINI.GAME platform, and the MINI.GAME platform returns a pre-generated game client URL.
Entergame
This API is provided by the MINI.GAME platform and is called by the integrator.
POST
{
MINIGAME_APIURL
}/api/game/v1/entergame?trace_id=
your
_trace_id
Headers
Content-Type
"application/json; charset=utf-8"
sign
"your_sign_string"
Body
appid
string
The unique identifier for the merchant, available in the merchant backend.
timestamp
integer
Timestamp (in seconds)
token
string
The user's token on the MINI.GAME platform can be obtained through the Get User Game Token API.
currency
string
Currency name, for details, refer to the "name" field of the supported currencies in the currency list.
gameid
string
The ID of the game the user wishes to enter.
lang
string optional
Game language, default is "english"
screen_mode
string
The screen mode needs to be transferred only when the game type is lottery game, 1=>full screen, 2=>half screen (displayed in the lower half of the mobile phone screen)
Integrator Request Parameter Example
{
"appid": "13",
"token": "50f15a92-ee8d-11ee-9a61-00ff3fae08f7",
"currency":"usdt",
"lang": "en",
"gameid": "9",
"timestamp": 1711954264
}
MINI.GAME Platform Response Parameter Example
{
"data": {
"gameurl":""
},
"code": 0,
"msg": "ok"
}
Response Example Parameter Descriptions
data
Yes
object
Response Data
gameurl
Yes
string
URL to launch the game client
code
Yes
integer
Status Code
msg
Yes
string
Prompt message
Error Code
Last updated