API Url:https://ai2a.com/api/app.php?s=App.User.Profile
API Description: 会员登录 获取当前登录会员自己的个人资料,更为全面的个人资料。
API Url:https://ai2a.com/api/app.php?s=App.User.Profile
API Description: 会员登录 获取当前登录会员自己的个人资料,更为全面的个人资料。
Parameter Name | Type | Is Required | Default | Note | Description |
access_token | string | Optional | | | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 |
Response Result | Type | Description |
ret | int | status code, 200 is ok, 4xx is bad request, 5xx is server inside error |
data | object/mixed | business data, decided by API implementation |
data.profile | object | 会员资料,不存在时为null |
data.profile.id | int | 会员ID |
data.profile.username | string | 账号 |
data.profile.register_time | string | 注册时间,例如:2019-12-19 17:03:45 |
data.profile.avatar | string | 头像链接 |
data.profile.nickname | string | 昵称 |
data.profile.email | string | 邮箱 |
data.profile.sex | string | 性别,0未知1男2女 |
data.profile.mobile | string | 手机号 |
data.profile.member_level | int | 会员等级 |
data.profile.member_status | int | 会员状态(0表示禁止,1表示正常) |
msg | string | message, usually error message |
{
"ret": 200,
"data": {
"profile": {
"id": 4,
"username": "test",
"register_time": "2019-12-19 17:03:45",
"avatar": "",
"nickname": "",
"email": "",
"sex": "0",
"mobile": "1576749880"
}
},
"msg": ""
}
Error Status | Error Description |
400 | ret=400,客户端参数错误或非法请求 |
404 | 表示接口服务不存在 |
406 | ret=406,access_token令牌校验不通过 |
407 | ret=407,app_key权限不足,或未知应用 |
408 | ret=408,当前用户禁止使用,或用户未登录 |
409 | ret=409,接口流量不足 |
500 | 表示服务端内部错误 |
Last generated at: 2024-10-29 21:48:17