User Role Confirm Interface Description

Description:

  • Get User Region And Server Character Information List In The Game Through ULU Platform Uid.
  • User Need To Obtain Their Character Information To Recharge.
  • Signature Type:MD5 Signature With LowerCase.

Request URL:

  • Game Develop Provide

Request Method:

  • POST

Content-Type:

  • application/json

Request Body:

Parameter Name Required Type Describe
userIp true Int(50) User IP Address, In Decimal Format.
userId true String(255) User Uid.
gameId true Int(10) GameId.
timestamp true Int(50) Timestamp,Exp:1725271615000
uluServerEnv true Int(1) Whether The ULU Platform Server Environment Code.1:Test,0:Product.
signature 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:

{
    "userIp":2130706433,
    "userId":"1199647056789024770",
    "gameId":100160,
    "timestamp":1664118000000,
    "uluServerEnv":1,
    "signature":"db125296fead97fba019c54bcc26fbf0"
}

Response Parameter:

Parameter Name Type Describe
code Int(5) Status Code:0 Is SUCCESS.
context JsonArray JsonStr.User Data.
msg String(500) Msg.

context Parameter:

Parameter Name Type Describe
serverId String(255) User ServerId
serverName String(255) User ServerName
roleId String(255) User RoleId
roleName String(255) User RoleName
extraData String(255) The extraData Passed By Game Develop When Apply The Order,Will Be Returned As Is.

Successful Response Demo:

 {
    "code":0,
    "context":[
        {
            "serverId":"server1",
            "serverName":"serverName1",
            "roleId":"2001001",
            "roleName":"roleName1"
        },
        {
            "serverId":"server2",
            "serverName":"serverName2",
            "roleId":"2001002",
            "roleName":"roleName2"
        }
    ],
    "msg":"success"
}
{
    "code":0,
    "context": [],
    "msg":"success",
}

Error Response Demo:

{
    “code”:4001,
    "context": [],
    "msg":"signature is wrong",
}

results matching ""

    No results matching ""