API開發文檔
歡迎流覽我們的API開發文檔!
獲取全部訂閱
GET
/api/subscriptions
權限:訂閱
Header | ||
字段 | 類型 | 描述 |
Content-Type | 字符串 | 應用或JSON |
成功 200 | ||
字段 | 類型 | 描述 |
event | 字符串 | 事件類型,值爲以下數值之一 [“NewCall”, “EnterQueue”, “Ringing”, “Answer”, “Hangup”, “GetSMS”] |
id | 字符串 | 唯一編號 |
type | 字符串 | [“json”, “slack”, “slack_debug”] |
url | 字符串 | 回調url |
成功響應
HTTP/1.1 200 OK
[{
"event": "Answer",
"id": "00c8c9d716800419549f27166397925b",
"url": "http://example.com/callback/answer"
},
{
"event": "NewCall",
"id": "00c8c9d716800419549f271663975995",
"type": "slack",
"url": "https://hooks.slack.com/services/M9HG5EF/M9HG5EF/2RqG3GsC5996HyqywGmsUi51M"
},
{
"event": "Ringing",
"id": "00c8c9d716800419549f271663978f5b",
"url": "http://example.com/callback/ringing"
}]