SUD

Get user score (deprecated)

This interface is deprecated. Use get_account to retrieve account information.

Description

  • (Deprecated) This callback API allows SUD to get the score of a specific user.

Callback URL

Provide callback URLs for your application server and contact SUD to configure the test and production environments separately. Deploy the production endpoint before using it.

Request method

  • Protocol: HTTPS
  • Method: POST
  • Request body format: JSON

Callback signature verification

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

Request parameters

Additional request fields may be introduced. Your application server must accept unknown 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 object

Parameter Required Type Description
score Yes int64 User score

Success response example

{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "score": 1000000
  }
}

Failure response example

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

results matching ""

    No results matching ""