通讯录
- 前提参数 userid token
- 地址 :
/api/v4.0/get_contacts
- 方法 GET
返回值
- code 200 成功
- msg
例子
http://172.26.106.36:5000/api/v4.0/get_contacts?userid=34afb9bfe3744e0f81263286b4c47107&token=fe6bb4c6a966acffea29610806dfdc98
返回
{
"code": 200,
"data": [
{
"department_name": "Xiugaihou",
"employee": [
{
"alias_name": null,
"email": "[email protected]",
"employee_id": "34afb9bfe3744e0f81263286b4c47107",
"entry_date": "2017-10-22",
"name": "\u4e8easda",
"phone": "13126939936",
"photo": 9,
"sex": null,
"work_num": "1234",
"work_phone": "911"
}
]
},
{
"department_name": "Fenzu1",
"employee": []
}
],
"msg": ""
}
搜索通讯录
- 前提参数 userid token
- 地址 :
/api/v4.0/search_contacts/<string:content>
- 方法 GET
返回值
- code 200 成功
- msg
- data 数组 最多10条
例子
http://172.26.106.36:5000/api/v4.0/search_contacts/as?userid=34afb9bfe3744e0f81263286b4c47107&token=fe6bb4c6a966acffea29610806dfdc98
返回
{
"code": 200,
"data": [
{
"alias_name": null,
"email": null,
"employee_id": "96d0357e86d34d0e821b08076ce8eb46",
"entry_date": "2017-10-27",
"name": "asdasda",
"phone": "17602223420",
"photo": 5,
"sex": null,
"work_num": null,
"work_phone": null
},
{
"alias_name": null,
"email": "[email protected]",
"employee_id": "34afb9bfe3744e0f81263286b4c47107",
"entry_date": "2017-10-22",
"name": "\u4e8easda",
"phone": "13126939936",
"photo": 9,
"sex": null,
"work_num": "1234",
"work_phone": "911"
}
],
"msg": ""
}