Skip to content

Instantly share code, notes, and snippets.

@tjlytle
Created March 4, 2010 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjlytle/321278 to your computer and use it in GitHub Desktop.
Save tjlytle/321278 to your computer and use it in GitHub Desktop.
Twilio Gets Drop.io
<?php
$ch = curl_init("http://api.drop.io/drops");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, array('version' => '2.0', 'api_key' => 'API_KEY'));
$return = curl_exec($ch);
$xml = new SimpleXMLElement($return);
?>
<Response>
<Say>Your drop information will be texted to you.</Say>
<Sms>
http://drop.io/<?php echo $xml->name?> <?php echo $xml->email ?> <?php echo $xml->voicemail ?> <?php echo $xml->conference ?>
</Sms>
</Response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment