Created
June 3, 2019 16:56
-
-
Save corypina/8d01ab45b62f3d28235508c22cb2dc61 to your computer and use it in GitHub Desktop.
Send notification through Pushover via PHP
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
| <?php | |
| curl_setopt_array($ch = curl_init(), array( | |
| CURLOPT_URL => "https://api.pushover.net/1/messages.json", | |
| CURLOPT_POSTFIELDS => array( | |
| "token" => "TOKEN", // Insert App Token | |
| "user" => "TOKEN", // Insert User token | |
| "title" => "TITLE", | |
| "message" => "MESSAGE", | |
| ), | |
| CURLOPT_SAFE_UPLOAD => true, | |
| CURLOPT_RETURNTRANSFER => true, | |
| )); | |
| curl_exec($ch); | |
| curl_close($ch); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment