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":"[email protected]"},{"type":"Company","email":"[email protected]"}],"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":"[email protected]"}],"doc_type":"contact","created_date":1538987702715,"modified_date":1539245821489}]
}