Verify User Token

The OMG platform calls this API to verify the player's identity information.

VerifySession

This API is provided by the integrator and is called by the OMG platform.

POST {AGENT_URL}/api/luck/user/verify_session?trace_id=omg_trace_id

{AGENT_URL} is the callback address entered in the integrator's backend.

Headers

Name
Value

Content-Type

"application/json; charset=utf-8"

sign

"omg_sign_string"

Please refer to the Signature Algorithm and Example page for details on the signature algorithm.

Body

Name
Type
Description

app_id

string

The unique identifier for the user, available in the merchant backend.

timestamp

integer

Timestamp (in seconds)

operator_player_session

string

The token parameter passed by the integrator from the ingame interface.

game_id

integer optional

Game ID

ip

string optional

User ip address

custom_parameter

string optional

Additional parameters required by the integrator

OMG Platform Request Parameter Example

Integrator Response Parameter Example

Integrator Response Parameter Example Description

Name
Required
Type
Description

code

Yes

integer

Status Code

msg

Yes

string

Message

data

Yes

object

Response Data

uname

Yes

string

User ID must be unique

nickname

Yes

string

User Nickname

balance

Yes

string (decimal)

User Balance, supports up to 4 decimal places.

Error Code

For more error codes, please refer to the General Error Codes page description.

Last updated