获取账号信息 | ||||
---|---|---|---|---|
接口描述 | 获取我的账号信息 | |||
请求URL | https://api.solarmanpv.com/account/v1.0/user-info | |||
请求方式 | post | |||
请求类型 | application/json | |||
返回类型 | / | |||
请求参数 | ||||
参数名 | 数据类型 | 参数类型 | 是否必填 | 描述说明 |
authorization | string | header | Y | accessToken,示例值:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9 |
响应参数 | ||||
参数名 | 数据类型 | 参数类型 | 是否必填 | 描述说明 |
code | string | body | N | 信息码 ,示例值:10000 |
string | body | N | 邮箱号 | |
lastLoginTime | string | body | N | 最近一次登录时间 |
nickname | string | body | N | 昵称 |
oldUserId | string | body | N | 客户自有平台的Uid |
originalPhotoUrl | string | body | N | 原始图片地址 |
phoneNumber | string | body | N | 手机号 |
phoneNumberPrefix | string | body | N | 手机号前缀 |
photoUrl | string | body | N | 头像地址 |
regTime | string | body | N | 注册时间 |
userId | integer | body | N | 用户ID |
username | string | body | N | 用户名称 |
msg | string | body | N | 信息描述 ,示例值:success |
success | boolean | body | N | 是否成功 ,示例值:true |
requestId | string | body | N | 请求标识 ,示例值:1d6f6eca9bee4b6483d4af064b659eec |
示例 | ||||
请求参数 | /account/v1.0/user-info | |||
返回值 | { “code”: null, “msg”: null, “success”: true, “requestId”: “b19522c0cda74b90992cd0cf1aa17d68”, “userId”: 14, “phoneNumberPrefix”: “86”, “phoneNumber”: “1301110006”, “email”: “chenggong.zhang@igen-tech.com”, “username”: “zcg”, “regTime”: null, “lastLoginTime”: 1583803446.000000000, “nickname”: “张成功”, “photoUrl”: “http://img1.igen-tech.com/temp/79d4091821834ae9b3d35c69793f5a131583200093224b“, “originalPhotoUrl”: “”http://img1.igen-tech.com/temp/880861e2f1614733932eefaa13f3d1531583200091488.gif”, “oldUserId”: null } |