Skip to content

Depreciated API

lockys edited this page Mar 22, 2016 · 1 revision

GET /api/v1/accounts/{user-uuid}/contacts

  • 用途: 取得聯絡人
  • header:
    • apiKey(必要的)- API 鑰匙
  • parameter:
  • response:
 [
  {
    "userName": "詹姆士龐德",
    "phoneNumber": "+886911234567",
    "location": null,
    "profile": "我寫程式碼",
    "company": null,
    "profilePhotoId": null,
    "nickName": "老詹",
    "chargeType": 1,
    "availableStartTime": "0:19",
    "availableEndTime": "15:20",
    "isEnable": true,
    "isHigherPriorityThanGlobal": false,
    "providerAvailableStartTime": "00:00",
    "providerAvailableEndTime": "00:00",
    "providerIsEnable": true,
    "qrCodeUuid": "c180f329-1825-43e2-9dd7-543facb0461a",
    "customerIcon": null
  }
]

PUT /api/v1/accounts/{uuid}/contacts/{qrCodeUuid}

  • 用途: 修改某聯絡人資料(包含可通話時段)
  • header:
    • apiKey(required)
  • payload:
 {}
  • parameter:
    • nickName to update nickname
    • isEnable to update isEnable of a contact
    • availableStartTime to update availableStartTime of a contact
    • availableEndTime to update availableEndTime of a contact
    • isHigherPriorityThanGlobal to update isHigherPriorityThanGlobal, true means contact available time is be used.
  • response:
    • status:
      • 200 OK
    {}

DELETE /api/v1/accounts/{user-uuid}/contacts/{qrCodeUuid}

  • 用途: 刪除某筆聯絡人
  • header:
    • apiKey(required)
  • payload:
    {}
  • parameter:
  • response:
    • status:
      • 200 OK
    {}

Clone this wiki locally