Skip to content
关注公众号,获取新课通知

获取用户信息


接口URL

http://demonuxtapi.dishait.cn/pc/getinfo

请求方式

GET

Content-Type

application/x-www-form-urlencoded

请求Header参数

参数名示例值参数类型是否必填参数描述
appidbd9d01ecc75dbbaaefceString网校唯一appid
tokeneyj...NjString用户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": "该用户已被禁用"
}