Created
November 9, 2011 22:37
-
-
Save RobSpectre/1353375 to your computer and use it in GitHub Desktop.
List TollFree phone numbers in PHP
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 | |
require_once('Services/Twilio.php'); | |
require_once('auth.php'); | |
$client = new Services_Twilio($ACCOUNT_SID, $AUTH_TOKEN); | |
$list = $client->account->available_phone_numbers->getList('US', 'TollFree'); | |
foreach ($list->available_phone_numbers as $num) { | |
print_r($num); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment