简体   繁体   English

如何使用 fetch 工具在 mikrotik 上使用 Pushbullet API?

[英]How to use Pushbullet API on mikrotik using fetch tool?

I need mikrotik to send me a notification via Pushbullet if there is a certain event using fetch如果有使用 fetch 的特定事件,我需要 mikrotik 通过 Pushbullet 向我发送通知

i find some code to work with it, but it send me an error, i read on the website about the error code, it says my token was invalid, i tried to create multiple token, but no luck我找到了一些可以使用它的代码,但它向我发送了一个错误,我在网站上阅读了有关错误代码的信息,它说我的令牌无效,我尝试创建多个令牌,但没有成功

/tool fetch mode=https url="https://api.pushbullet.com/api/pushes" http-method=post http-data="device_iden=&type=note&body=High priority message from MikroTik device&title=RouterOS Alert" user="" /tool fetch mode=https url="https://api.pushbullet.com/api/pushes" http-method=post http-data="device_iden=&type=note&body=来自 MikroTik 设备的高优先级消息&title=RouterOS Alert" 用户=""

i expected the code to send the notification, but i get <401 unauthorized> instead我希望代码发送通知,但我收到 <401 未授权>

Correct syntax with Pushbullet: 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"

On a specific device:在特定设备上:

/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"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM