Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Twilio Gets
$ch = curl_init("");
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);
<Say>Your drop information will be texted to you.</Say>
<Sms><?php echo $xml->name?> <?php echo $xml->email ?> <?php echo $xml->voicemail ?> <?php echo $xml->conference ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment