Response Format Description
Returned Result
1 2 3 4 5 6 7 8 9 10 | { "code": "2000", "message": "User information obtained successfully", "messageArgs": [], "data": { "uid":"1", "username": "***", "role": "Admin" } } |
Return Parameter
Parameter |
Name |
Type |
Description |
|---|---|---|---|
code |
Returned value |
String |
If the data is normal, 2000 is returned. If an error occurs, the corresponding error code is returned. |
message |
Returned message |
String |
Returned message. For details about a normal message, see the above example. For details about the interface request error messages, see the Error codes table. |
messageArgs |
Returned message arguments |
List |
Currently, this parameter is left blank for extension. |
data |
Data dictionary |
dict |
Dictionary of returned information. |
uid |
Unique ID of an account |
String |
UID of an account. Only valid users can log in to the system. |
username |
Username |
String |
Username. |
role |
Account role |
String |
Account role. The value can only be Admin or User. |
Error Code
Error Scene |
Return Code |
Error Message |
|---|---|---|
Missing client_id |
8101 |
The client_id parameter is missing. |
Missing access_token |
8105 |
The access_token parameter is missing. |
Invalid client_id |
8201 |
The client_id parameter is invalid. |
Invalid access_token |
8205 |
The access_token parameter is invalid. |
Internal resource error |
8500 |
There is internal resource error on the server. |