Skip to content

Instantly share code, notes, and snippets.

@hunnycode
Created May 27, 2013 03:06
Show Gist options
  • Save hunnycode/5654988 to your computer and use it in GitHub Desktop.
Save hunnycode/5654988 to your computer and use it in GitHub Desktop.
<?php
// Download/Install the PHP helper library from twilio.com/docs/libraries.
// This line loads the library
require('Services/Twilio.php');
// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "Twilio account SID";
$token = "Twilio account Auth Token";
$client = new Services_Twilio($sid, $token);
// Loop over the list of calls and echo a property for each one
foreach ($client->account->calls->getIterator(0, 50, array(
"Status" => "completed",
"StartTime" => "2013-05-23"
)) as $call
) {
echo $call->sid."<br>".$call->from."<br>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment