获取指定用户的密码数据
方法:GET
https://network.tingyun.com/network-report-data/some/user/getUserById-json-authkey
API依赖关系
id:需要请求用户列表接口获取对应的用户ID。
API调用流程图
- 调用用户列表API,获取关键参数id。
- 通过id调用获取指定用户的密码数据API,获取指定用户的密码。
请求参数
| 字段名 |
类型 |
必填 |
描述 |
| authkey |
String |
是 |
账号授权码 |
| id |
Long |
是 |
用户编号 |
返回参数
| 字段名 |
类型 |
描述 |
| id |
Int |
用户编号 |
| code |
String |
用户登录名 |
| name |
String |
用户名 |
| type |
Int |
用户类型。11:任务管理账号,4:报表查看账号,默认为报表查看账号 |
| code |
Int |
HTTP响应状态码 |
| data |
Object |
返回数据 |
错误说明
| 字段说明 |
错误信息 |
| authkey |
PermissionDeniedError |
返回示例
{
"code": 200,
"data": {
"id": 1642939,
"code": "limy_sihy000",
"name": "sihy000子账号测试",
"mobile": "",
"type": 4,
"email": "limy@tingyun.com",
"detail_ids": null,
"task_ids": null,
"change_task_ids_creator": null,
"phone": "",
"status": 1,
"if_newtask_view": 1,
"ctime": "2019-04-22 12:04:20",
"new_create": null
}
}