Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created February 4, 2012 20:15
Show Gist options
  • Save RobSpectre/1739851 to your computer and use it in GitHub Desktop.
Save RobSpectre/1739851 to your computer and use it in GitHub Desktop.
Demonstration of deleted recordings
<?php
require_once('Services/Twilio.php');
require_once('auth.php');
$client = new Services_Twilio($ACCOUNT_SID, $AUTH_TOKEN);
echo "Old list: \n";
foreach ($client->account->recordings as $rec) {
print $rec->sid."\n";
$recording_to_delete = $rec;
}
print "\n\n\n";
$client->account->recordings->delete($recording_to_delete->sid);
echo "Old list: \n";
foreach ($client->account->recordings as $rec) {
print $rec->sid."\n";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment