Skip to content

Instantly share code, notes, and snippets.

@twilioforkwc
Created September 25, 2015 06:50
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/ced15bf12d533ca43fa1 to your computer and use it in GitHub Desktop.
Save twilioforkwc/ced15bf12d533ca43fa1 to your computer and use it in GitHub Desktop.
<?php
require_once('../Services/Twilio.php'); // Loads the library
$sid = "ACxxxxxxxxxx";
$token = "xxxxxxxxxxxxxxxx";
$client = new Services_Twilio($sid, $token);
foreach ($client->account->incoming_phone_numbers as $number) {
echo $number->phone_number . "\n";
echo $number->sid . "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment