#

SUD

Brief Description

  • Retrieve user account information

Request URL

  • Separate URLs for testing and production environments; Sud needs to configure both.
  • The production environment URL will only take effect after official deployment.

Request Method

  • https
  • POST
  • Parameters in JSON format, placed in the request body.

Callback Signature Verification

  • To ensure data integrity, the client's server needs to verify the callback content using signature verification.

Body Parameters(More fields may be added, and the client needs to ensure the compatibility of new fields.)

Parameter Required Type Description
uid Yes string User uid

Request Example

{
    "uid":"xxx"
}

Response parameters

Parameter Required Type Description
ret_code Yes int32 Error code: 0 for success, others for errors
ret_msg Yes string Error message
data Yes object Data
  • data
Parameter Required Type Description
nickname Yes string Nickname
avatar_url Yes string Avatar URL
score Yes int64 User score
vip_level Yes int64 The user's VIP level currently supports 0 to 3. The larger the value, the more friendly it is to the user

Success Response Example

{
    "ret_code": 0,
    "ret_msg": "success",
    "data": {
      "nickname": "xxx",
      "avatar_url": "https://avatar_url",
      "score": 10000,
      "vip_level": 0
    }
}

Error Response Example

{
    "ret_code": 1,
    "ret_msg": "failure",
    "data": {}
}

results matching ""

    No results matching ""