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"
}]