Skip to content

Instantly share code, notes, and snippets.

@mhils
Created August 21, 2013 15:58
Show Gist options
  • Save mhils/6296371 to your computer and use it in GitHub Desktop.
Save mhils/6296371 to your computer and use it in GitHub Desktop.
Choir PHP integration
<?php
$url = "http://api.choir.io/KEY";
$data = array (
"label" => "hello",
"text" => "Hello Choir!",
"sound" => "g/3"
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec ($ch);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment