public
Last active

Twilio Gets Drop.io

  • Download Gist
gistfile1.phtml
HTML+PHP
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>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.