通知滤盒从 2.0.0 版开始新增 Webhook 功能,可以创建规则,将您需要的通知内容发送到指定的 URL。
注意:通知内容可能包含隐私信息,请务必选择您信赖的服务端。
GET
和 POST
以下为部分常用字段:
{android.title}
通知标题{android.text}
通知内容{filterbox.field.APP_NAME}
App 名称{filterbox.field.PACKAGE_NAME}
App 包名{filterbox.field.WHEN}
通知的发送时间URL 语法举例:
https://example.com/notification?title={android.title}&message={android.text}&app={filterbox.field.APP_NAME}
body 语法举例:
{
"title": "{android.title}",
"text": "{android.text}",
"app": "{filterbox.field.PACKAGE_NAME}",
"some_other_field": "some other field here"
}
当 body 格式为 JSON 时,header 建议填写为 Content-Type: application/json
如有疑问或更多功能需求,欢迎使用 App 内反馈功能邮件联系作者。
GET
,URL 为
https://sctapi.ftqq.com/#Server酱SendKey#.send?title={android.title}&desp={android.message}
/newbot
并跟随提示创建机器人,获得 tokenGET
,URL 为
https://api.telegram.org/bot#机器人token#/sendmessage?text={android.title}%0A{android.text}&chat_id=#你的ID#