Webhook 触发器的工作原理
每个频道都有一个唯一的 Webhook URL。当您的应用程序向此 URL 发送数据时,回声铃会处理负载并向所有订阅者发送通知。
从频道设置中复制唯一的 Webhook URL。
从您的应用程序发送 GET 或 POST 请求以触发通知。
在模板中使用变量创建动态通知内容。
集成示例
了解如何将回声铃 Webhook 与热门服务和应用程序集成。
GET https://hook.echobell.one/t/xxx
?amount=100&status=success
POST https://hook.echobell.one/t/xxx
Content-Type: application/json
{
"amount": 100,
"status": "success"
}
Webhook 变量
通过模板变量访问请求数据,如 {{amount}}、{{status}} 或 {{header["content-type"]}}。
Server {{server_name}} alert: {{message}}
This template will use the server_name and message variables from your webhook data.
Server web-01 alert: High CPU usage detected
The final notification sent to all subscribers of this channel.