Enter Game
The integrator initiates a user game entry request to the OMG platform, and the OMG platform returns a pre-generated game client URL.
Entergame
This API is provided by the OMG platform and is called by the integrator.
POST {OMG_API_URL}/api/game/v1/entergame?trace_id=your_trace_id
Headers
Content-Type
"application/json; charset=utf-8"
sign
"your_sign_string"
Body
app_id
string
The unique identifier for the merchant, available in the merchant backend.
token
string
The user's token on the OMG platform can be obtained through the Get User Game Token API.
gameid
string
The ID of the game the user wishes to enter.
timestamp
integer
Timestamp (in seconds)
lang
string optional
Game language, default is "english"
back_url
string optional
The callback URL for when the player clicks exit in the game. Only brands with the value of 2, 3, 4, or 8 in the platform field returned by the /api/game/loadlist interface are valid.
screen_mode
string
1 = Vertical full screen 2 = Half screen (displayed on the lower half of the mobile screen) 3 = Horizontal full screen
Currently effective only for Casino and Lottery.
Integrator Request Parameter Example
OMG Platform Response Parameter Example
Response Example Parameter Descriptions
code
Yes
integer
Status Code
msg
Yes
string
Message
data
Yes
object
Response Data
gameurl
Yes
string
URL to launch the game client
Error Code
Last updated