2024/10/08

LINE Notify 的替代方案

 LINE Notify 割韭菜了.

只好拿稍微麻煩一點的 pushbullet 來用.

產生 token:

登入 pushbullet 主頁.


在帳號的設定頁面建立 token.



請牢記你的 token, 保管好並且不要洩漏.
然後點選你想接收訊息的裝置

URL 最後就是你的裝置 ID.
接下來就是透過 curl 傳遞我們想要傳送的訊息:
curl -X POST https://api.pushbullet.com/v2/pushes \
-H "Authorization: Bearer ${你的token}>" \
-H "Content-Type: application/json" \
-d "{\"type\": \"note\", \"title\": \"${訊息抬頭}\", \"body\": \"${訊息內容}\", \"device_iden\": \"${你的裝置ID}\"}"



沒有留言: