用户信息
开发中
GET
/api/user/info
请求参数
Header 参数
token
string
可选
示例值:
{{apiToken}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/user/info' \
--header 'token: {{apiToken}}' \
--header 'token;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
id
integer
必需
sn
integer
必需
sex
string
必需
account
string
必需
nickname
string
必需
real_name
string
必需
avatar
string
必需
mobile
string
必需
create_time
string
必需
has_password
boolean
必需
has_auth
boolean
必需
version
string
必需
user_money
string
用户余额
user_earnings
string
用户佣金
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"id": 7,
"sn": 10031527,
"sex": "未知",
"account": "u10031527",
"user_money": "95.00",
"user_earnings": "100.00",
"nickname": "用户10031527",
"real_name": "",
"avatar": "http://www.php-ws.localhost/resource/image/adminapi/default/default_avatar.png",
"email": "2279254178@qq.com",
"mobile": "",
"is_blacklist": 0,
"create_time": "2024-01-22 16:16:09",
"has_password": true,
"has_auth": false,
"version": "1.3.0"
}
}
修改于 2024-03-19 10:03:06