Request to Enter Game
The integrator calls this API to obtain the player's game entry link.
InGame
This API is provided by the OMG platform and is called by the integrator.
POST {OMG_API_URL}/api/usr/ingame?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.
gameid
string
The game ID for the request to enter the game, which is the value of the gameid field in the game list.
token
string
User Verification Token Used for authentication in the single wallet interface.
nick
string
User nickname, up to 40 characters.
lang
string optional
Game language, default is "english".
cid
integer optional
Currency ID. Required for multi-currency merchants and can be found in the multi-currency backend under the "API Access" section to view available currency IDs. For single-currency merchants, simply pass 0.
back_url
string 非必填
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