Pushover

From Indie IT Wiki
Revision as of 08:42, 5 September 2024 by Plittlefield (talk | contribs) (→‎Curl)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Command Line

Curl

curl -s -o /dev/null --form-string "token=<application_api_token_key>" --form-string "user=<user_key>" --form-string "message=hello world" https://api.pushover.net/1/messages.json

Priority (which will highlight the message in red to make it stand out)

curl -s -o /dev/null --form-string "token=<application_api_token_key>" --form-string "user=<user_key>" --form-string "message=hello world" --form-string "priority=1" https://api.pushover.net/1/messages.json

https://pushover.net/api

Pushover CLI

A Python script...

https://github.com/aaronfagan/pushover-cli

https://icon-icons.com/icons2/384/PNG/128/utilities-terminal-icon_37688.png

~/.pushover/config

USER_KEY="userkeyinhere"
APP_TOKEN="apptokeninhere"
/usr/local/bin/pushover --quiet --title "My Title" --message "My message."