Skip to content

Instantly share code, notes, and snippets.

@twilioforkwc
Last active September 25, 2015 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twilioforkwc/d61f13d9798ed497d76a to your computer and use it in GitHub Desktop.
Save twilioforkwc/d61f13d9798ed497d76a to your computer and use it in GitHub Desktop.
<?php
require_once('../Services/Twilio.php'); // Loads the library
$sid = "ACxxxxxxxxx";
$token = "xxxxxxxxxxxxxxxx";
$client = new Services_Twilio($sid, $token);
$numbers = $client->account->available_phone_numbers->getList('JP', 'Local', array(
"Contains" => "+8150*******"
));
foreach($numbers->available_phone_numbers as $number) {
echo $number->phone_number . "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment