【问题标题】:How to use Pushbullet API on mikrotik using fetch tool?如何使用 fetch 工具在 mikrotik 上使用 Pushbullet API?
【发布时间】:2019-12-04 09:38:39
【问题描述】:
如果有使用 fetch 的特定事件,我需要 mikrotik 通过 Pushbullet 向我发送通知
我找到了一些可以使用它的代码,但它给我发送了一个错误,我在网站上阅读了有关错误代码的信息,它说我的令牌无效,我试图创建多个令牌,但没有运气
/tool fetch mode=https url="https://api.pushbullet.com/api/pushes" http-method=post http-data="device_iden=&type=note&body=来自 MikroTik 设备的高优先级消息&title=RouterOS提醒"用户=""
我希望代码发送通知,但我得到 代替
【问题讨论】:
标签:
api
fetch
mikrotik
pushbullet
【解决方案1】:
Pushbullet 的正确语法:
/tool fetch mode=https url="https://api.pushbullet.com/v2/pushes" http-method=post http-data="type=note&body=some text" user="API-Token"
在特定设备上:
/tool fetch mode=https url="https://api.pushbullet.com/v2/pushes" http-method=post http-data="device_iden=<device_id>&type=note&body=some text" user="API-Token"