Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Twilio Gets Drop.io

View gist:321278
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?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
Something went wrong with that request. Please try again.