Server Login Request Interface Description

Description:

  • After User Completes Login, ULU Platform Server Will Send A Login Request With User Token And Uid To Game Develop Server.
  • The Game Develop Server Needs To Respond With The Login Information Form And Url.
  • Signature Type:1.0.1MD5 Signature With LowerCase.

Request URL:

  • Game Develop Provide

Request Method:

  • POST

Content-Type:

  • application/json

Request Body:

Parameter Name Required Type Describe
clientIp true String(255) Client Ip Address.
channel true String(500) Dot data,jsonstr.
gameId true Int(10) GameId.
userId true String(50) User Uid.
token true String(50) User token.
extraData true String(50) Parameters Received From Web Page.
timestamp true long(50) Timestamp,exp:1725271615000
sign true String(50) Signature Information, Sorted By Parameter Name a-z (Signature Is Not Encrypted), Concatenated Parameter Values + Secret (key) To Get FinalString, Then Encrypted With md5(), For Example: md5 (amount+channelReceipt+currency+...+uid+secret)

Request Body Demo:

{
    "clientIp": "128.1.125.51",
    "channel": "google",
    "gameId":100000,
    "userId":"1461229553388138497",
    "token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ7",
    "extraData":"",
    "timestamp":1655889609000,
    "sign":"2f57b7fcd12c86ba93803fd56104e8db"
}

Response Parameter:

Parameter Name Type Describe
code Int(5) Status Code:0 Is SUCCESS.
context JsonStr JsonStr.Form Data.
url String(500) Web Page Needs Request Url.
desc String(500) Msg.

Successful Response Demo:

{
    "code":0,
    "context":[
        {
            "key":"resource", "value":"sgdts_w_kr_d_w_beta"
        },{
            "key":"account","value":"1210086437446320129"
        },{
            "key":"token","value":"7EF83554E7CF410F8A1D1B2F948A91D3"
        },{
  "key":"SDKToken","value":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ7XCJnYW1lSWRcIjoxMDAxNjAsXCJ1aWRcIjpcIjEyMTAwODY0Mzc0NDYzMjAxMjlcIixcImxhbmd1YWdlXCI6XCJrby1LUlwiLFwidXNlck5hbWVcIjpcImdvb2dsZVwiLFwiY2hhbm5lbElkXCI6OSxcInBsYXRmb3JtXCI6MyxcInRva2VuXCI6XCJ0b2tlblwifSIsImdhbWVJZCI6MTAwMTYwLCJ1aWQiOiIxMjEwMDg2NDM3NDQ2MzIwMTI5IiwibGFuZ3VhZ2UiOiJrby1LUiIsImNoYW5uZWxJZCI6OSwicGxhdGZvcm0iOjMsImV4cCI6MTY3OTQ3MDU3OX0.aaO3I7FzOuQ5nnPX1xuCGSTQYRUrk3_y_pFEreu4Ugj2ODDnCJ-zT7Na6BOSciubxSLudfcbIoapaPGM5WH1aw"
        },{
            "key":"channel","value":"google"
          }
    ],
    "url":"https://sgdts_center.ulugame.com/gateway/login_safety","desc":"success",
    "desc":"SUCCESS"
}

Error Response Demo:

 {
     "code": 1,
     "desc":"error happen"
     }

results matching ""

    No results matching ""