Difference between revisions of "Pushover"

From Indie IT Wiki
imported>Plittlefield
 
 
(One intermediate revision by the same user not shown)
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 (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>
  
 
https://pushover.net/api
 
https://pushover.net/api

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