#

Description
- This callback API allows 【SUD】 to get the score of a specific user.
Request URL
- Split into a test environment and a production environment, and inform Sud to configure them separately.
- The production environment address will only take effect after formal deployment.
Request method
- HTTPS
- POST
- Parameters are in JSON format and included in the request body.
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 |
Parameter |
Required |
Type |
Description |
score |
Yes |
int64 |
User score |
Success Response Example
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"score": 1000000
}
}
Error Response Example
{
"ret_code": 1,
"ret_msg": "failure",
"data": {}
}