API开发文档
欢迎浏览我们的API开发文档!
获取全部联系人
GET
/api/v2/contacts
权限:联系人
Header | ||
字段 | 类型 | 描述 |
Content-Type | 字符串 | 应用或JSON |
参数 | ||
字段 | 类型 | 描述 |
keyword | 字符串 | 搜索关键字(名字、号码、邮箱或tagid) |
items | 数字 | 返回项的数量 |
currentpage | 数字 | 返回项内容的页码 |
请求样例
/api/v2/contacts?items=100¤tpage=1&keyword=16
成功 200 | ||
字段 | 类型 | 描述 |
totalRows | 数字 | 根据关键字筛选的联系人总数量 |
rows | 对象数组 | 联系人列表 |
成功响应
HTTP/1.1 200 OK
{ "totalRows":4},
"rows":[{"name":"tom","numbers":[{"type":"Company","number":"164832443241"},{"type":"School","number":"16234234241"}],"emails":[{"type":"School","email":"416255403@qq.com"},{"type":"Company","email":"tom@gmail.com"}],"tag_ids":[],"doc_type":"contact","created_date":1539246059086},
{"name":"Alen","number":"144732443242","numbers":[{"type":"Company","number":"163732443242"},{"type":"China","number":"154284375822"}],"emails":[],"tag_ids":[],"doc_type":"contact","created_date":1538987721552,"modified_date":1539245821489},
{"name":"carter","numbers":[{"type":"Home","number":"16473243224"}],"emails":[],"tag_ids":[],"doc_type":"contact","created_date":1539246138091},
{"name":"haiyan","numbers":[{"type":"Company","number":"164732443242"},{"type":"Home","number":"154732443242"}],"emails":[{"type":"Company","email":"haiyan@yahoo.com"}],"doc_type":"contact","created_date":1538987702715,"modified_date":1539245821489}]
}