Difference between revisions of "Pushover"

From Indie IT Wiki
imported>Plittlefield
 
Line 3: Line 3:
 
=== Curl ===
 
=== Curl ===
  
  curl -s --form-string "token=<application_api_token_key>" --form-string "user=<user_key>" --form-string "message=hello world" <nowiki>https://api.pushover.net/1/messages.json</nowiki>
+
  curl -s -o /dev/null --form-string "token=<application_api_token_key>" --form-string "user=<user_key>" --form-string "message=hello world" <nowiki>https://api.pushover.net/1/messages.json</nowiki>
 +
 
 +
Priority
 +
 
 +
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"''' <nowiki>https://api.pushover.net/1/messages.json</nowiki>
  
 
https://pushover.net/api
 
https://pushover.net/api

Revision as of 08:41, 5 September 2024

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

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