Skip to content

Instantly share code, notes, and snippets.

@caseysoftware
Created June 26, 2013 16:51
Show Gist options
  • Select an option

  • Save caseysoftware/5869159 to your computer and use it in GitHub Desktop.

Select an option

Save caseysoftware/5869159 to your computer and use it in GitHub Desktop.
This is the script to place a call
<?php
require 'Services/Twilio.php';
include 'credentials.php';
$client = new Services_Twilio($AccountSid, $AuthToken);
$call = $client->account->calls->create(
'1512-555-1212', // From this number
'17035551212', // Send to this number
'http://twimlets.com/echo?Twiml=%3CResponse%3E%3CSay%3EHello%20Monkey!%3C%2FSay%3E%3C%2FResponse%3E&'
);
print $call->sid;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment