获取用户信息
GET
/externalapi/user/getGetUserInfo接口目前只支持账号密码登录,不支持验证码登录。
请求参数
Query 参数
access_token
string
必需
用户token。用户登录之后,获取token
示例值:
{{access_token}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
响应编码:1=正常,0=错误
msg
string
响应说明
time
string
必需
data
object
必需
id
integer
必需
username
string
用户名
nickname
string
昵称
email
string
用户邮箱
mobile
string
手机号
email_verify
integer
必需
邮件是否验证。0=未验证,1=已验证
mobile_verify
integer
必需
手机号码是否验证。0=未验证,1=已验证
avatar
string
头像
duties
null
必需
gender
integer
必需
purpose
null
必需
money
string
账户余额
score
integer
账户积分
extension_status
integer
必需
推广状态:0=未激活,1=审核中,2=激活成功,3=激活失败
verify_status
string
必需
验证状态:0=未实名认证,1=已通过支付宝扫码实名认证
owner_verify_status
string
必需
企业认证:0=未认证,1=已认证
ref
string
推广链接
channel
string
必需
推广方式:0=用户推广,1=渠道推广
origin_money
string
必需
give_money
string
必需
token
string
登录token
示例
{
"code": 1,
"msg": "获取成功",
"time": "1697528176",
"data": {
"id": 1,
"username": "userxxxx",
"nickname": "demo_name",
"email": "demo_name@qq.com",
"mobile": "",
"email_verify": 1,
"mobile_verify": 0,
"avatar": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgaGVpZ2h0PSIxMDAiIHdpZHRoPSIxMDAiPjxyZWN0IGZpbGw9InJnYigxNjEsMTYwLDIyOSkiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48L3JlY3Q+PHRleHQgeD0iNTAiIHk9IjUwIiBmb250LXNpemU9IjUwIiB0ZXh0LWNvcHk9ImZhc3QiIGZpbGw9IiNmZmZmZmYiIHRleHQtYW5jaG9yPSJtaWRkbGUiIHRleHQtcmlnaHRzPSJhZG1pbiIgZG9taW5hbnQtYmFzZWxpbmU9ImNlbnRyYWwiPjc8L3RleHQ+PC9zdmc+",
"duties": null,
"gender": 0,
"purpose": null,
"money": "3347.42",
"score": 2195,
"extension_status": 2,
"verify_status": "1",
"owner_verify_status": "0",
"ref": "https://ceshi.zhizhuip.vip",
"channel": "1",
"origin_money": "3293.23",
"give_money": "54.19",
"token": "3646c38e-82fd-4dc8-8815-b662229b83ac",
"user_id": 1,
"createtime": 1697512606,
"expiretime": 1700104606,
"expires_in": 2576430,
"ref_status": "渠道推广"
}
}
最后修改时间: 1 年前