API開發文檔

歡迎流覽我們的API開發文檔!

獲取全部聯繫人

GET

/api/v2/contacts

權限:聯繫人

Header
字段類型描述
Content-Type字符串應用或JSON
參數
字段類型描述
keyword字符串蒐索關鍵字(名字、號碼、郵箱或tagid)
items數字返回項的數量
currentpage數字返回項內容的頁碼




請求樣例
/api/v2/contacts?items=100&currentpage=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}]
 }

标签:
Table of Contents