Created
March 4, 2010 01:00
-
-
Save tjlytle/321278 to your computer and use it in GitHub Desktop.
Twilio Gets Drop.io
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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