Check User Login Status Interface Description

Description:

  • User Login Successful,The SDK Client Will Pass The AccessToken To The Game Client.
  • Game Develop Server Sends A Request To ULU Platform Server Verify The User AccessToken.ULU Platform Server Response User Information.

Request URL:

  • Test/Product:https://sdk.ulugame.com/v2/api/member/user/checkLogin

Request Method:

  • POST

Content-Type:

  • application/json

Request Body:

Parameter Name Required Type Describe
token true String(256) User AccessToken,Please Note That The Length Of TheToken Should Not Be Truncated.
sandbox true Int(1) ULU SDK Environment Code,0:Product;1:Test.

Request Body Demo:

{
    "token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ7XCJnYW1lSWRcIjoxMDAyOTIsXCJ1aWRcIjpcIjE4MzAwNzY0MjUzODI2Nzg1MzBcIixcImxhbmd1YWdlXCI6XCJ2aS1WTlwiLFwiZGV2aWNlSWRcIjo0MTg3NDY1LFwiY2hhbm5lbElkXCI6MSxcInBsYXRmb3JtXCI6MixcInRva2VuXCI6XCJ0b2tlblwifSIsImdhbWVJZCI6MTAwMjkyLCJ1aWQiOiIxODMwMDc2NDI1MzgyNjc4NTMwIiwiZGV2aWNlSWQiOjQxODc0NjUsImxhbmd1YWdlIjoidmktVk4iLCJjaGFubmVsSWQiOjEsInBsYXRmb3JtIjoyLCJleHAiOjE3MjU4NjkyMDZ9.qDVrmEYVvbka-qorc9Gq7uv2ZTk5GfrFHwhrHq9w5mli42XoUpCtZkw8EYweYZ7DT0i_bHa75DE_e3GKaxUojA
",
    "sandbox":1
}

Response Parameter:

Parameter Name Type Describe
code Int(10) Status Code:0 Is SUCCESS.
data Object When Failed Is null, If Successful ,The User Uid (Unique) Json
msg String When Successful Is null, If Failed ,The Failure Reason

Successful Response Demo:

 {
    "code":0,
    "data":{ 
            "uid":"1197329976064507905"
            }
}

ERROR Response Demo:

{
    "code":30010,
    "data":null,
    "msg": "token is null or empty"
}

Remind

  • Please Pay Attention To The SDK Environment Of The Game Access.

results matching ""

    No results matching ""