Skip to content

Instantly share code, notes, and snippets.

@nckltcha
Created August 17, 2012 15:56
Show Gist options
  • Select an option

  • Save nckltcha/3380123 to your computer and use it in GitHub Desktop.

Select an option

Save nckltcha/3380123 to your computer and use it in GitHub Desktop.
Post Pushover Message via CURL / PHP
<?php
curl_setopt_array($ch = curl_init(), array(
CURLOPT_URL => "https://api.pushover.net/1/messages",
CURLOPT_POSTFIELDS => array(
"token" => "APIKEY",
"user" => "USERKEY",
"message" => "hello world",
)));
$result = curl_exec($ch);
curl_close($ch);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment