Created
October 21, 2022 15:56
-
-
Save aimfireready/f346331f894783fbef61f32fdee3d8f8 to your computer and use it in GitHub Desktop.
Pushover curl
This file contains hidden or 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
| #################################################### | |
| # v1.0.0 | |
| # 2022 Gandalf Farnam | |
| # Send a Pushover notification | |
| # | |
| # Usage: | |
| # - Replace $TOKEN with the shared folder token.* | |
| # - Replace $USER with your domain. | |
| #################################################### | |
| $body='Kachow!' | |
| curl -X POST \ | |
| --form-string "token=$TOKEN" \ | |
| --form-string "user=$USER" \ | |
| --form-string "message=$body" \ | |
| "https://api.pushover.net/1/messages.json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment