Last active
March 19, 2017 18:10
-
-
Save Rocketeer007/ea15edc17abfbc84d2ddf864b0742580 to your computer and use it in GitHub Desktop.
Send a PushOver notification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
MESSAGE=$* | |
PUSHOVER_APP_TOKEN=a9DSV_REDACTED_VALUE | |
PUSHOVER_USER_TOKEN=uVqZ_REDACTED_VALUE | |
# Send PushOver notification | |
curl -s \ | |
--form-string "token=${PUSHOVER_APP_TOKEN}" \ | |
--form-string "user=${PUSHOVER_USER_TOKEN}" \ | |
--form-string "message=${MESSAGE}" \ | |
https://api.pushover.net/1/messages.json >/dev/null 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment