Difference between revisions of "Pushover"

From Indie IT Wiki
 
Line 5: Line 5:
 
  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>
 
  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  
+
'''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"''' <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" '''--form-string "priority=1"''' <nowiki>https://api.pushover.net/1/messages.json</nowiki>

Latest revision as of 08:42, 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 (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."