On this page
获取用户信息
接口URL
请求方式
GET
Content-Type
application/x-www-form-urlencoded
请求Header参数
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
appid | bd9d01ecc75dbbaaefce | String | 是 | 网校唯一appid |
token | eyj...Nj | String | 是 | 用户Token |
成功响应示例
json5
{
"msg": "ok",
"data": {
"email": "456***@qq.com",
"phone": "150****4195",
"id": 1,
"username": "ceshi1",
"nickname": "",
"avatar": "",
"weixin_unionid": null,
"sex": "未知",
"desc": "",
"status": 1,
"created_time": "2021-02-21T14:04:02.000Z",
"updated_time": "2022-02-28T17:37:46.000Z"
},
"code": 20000
}
错误响应示例
json5
{
"msg": "fail",
"data": "该用户已被禁用"
}