Workorder/kefu/get child user
来自技术开发小组内部wiki
功能说明
根据部门查找其拥有的用户
URL
http://[域名]/workorder/kefu/get_child_user
返回格式
支持json,xml.通过format参数来控制
HTTP请求方式
POST.可以post的数据为xml或json.
输入参数说明
各个参数请进行URL 编码,编码时请遵守 RFC 1738 (1)公共参数 发送请求时必须传入公共参数,详见公共参数说明。 (2)私有参数
参数名称 | 是否必须 | 类型 | 描述 |
---|---|---|---|
depart_name | 必须 | string | 部门名称 |
请求示例
正式环境 http://api.fumubang.com/workorder/kefu/get_child_user 测试环境 http://api.fumubang.net/workorder/kefu/get_child_user 本地环境 http://dev-api.fumubang.net/workorder/kefu/get_child_user
返回参数说明
参数 | 说明 |
---|---|
uid | 用户ID |
name | 用户名 |
realname | 真实姓名 |
邮箱 | |
role | 角色 |
area | 地域 |
department_id | 部门ID |
正确返回示例
"data": { "status": "success", "users": { "user": [ { "uid": "108", "name": "wangying", "token_expires": "0", "role": "admin", "area": "2", "department_id": "3" }, { "uid": "5", "name": "majie", "token_expires": "0", "role": "editor", "area": "0", "department_id": "1" }, { "uid": "6", "name": "admin2", "email": "ceshi@fumubang.net", "token": "uPGcco8YBU", "token_expires": "1420709071", "role": "admin", "area": "0", "department_id": "1" }, { "uid": "9", "name": "xuyaya", "token_expires": "0", "role": "editor", "area": "1", "department_id": "0" }, { "uid": "10", "name": "jiana", "token_expires": "0", "role": "editor", "area": "1", "department_id": "0" }, { "uid": "17", "name": "shendian", "token_expires": "0", "role": "editor", "area": "1", "department_id": "0" }, { "uid": "21", "name": "qihongjie", "token": "NQHkd9CUX8", "token_expires": "1364435794", "role": "editor", "area": "2", "department_id": "0" }, { "uid": "22", "name": "yuhang.li", "token_expires": "0", "role": "admin", "area": "0", "department_id": "0" }, { "uid": "26", "name": "467", "token_expires": "0", "role": "auditor", "area": "0", "department_id": "1" }, { "uid": "27", "name": "470", "token_expires": "0", "role": "auditor", "area": "0", "department_id": "1" }, { "uid": "179", "name": "longruirui", "token_expires": "0", "role": "admin", "area": "2", "department_id": "0" } ] } }
错误返回示例
<syntaxhighlight lang="php"> <error_code>300001</error_code> <error_msg>账号不存在</error_msg> </syntaxhighlight>