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/fdce07d7b81351926e1f to your computer and use it in GitHub Desktop.
Save twilioforkwc/fdce07d7b81351926e1f to your computer and use it in GitHub Desktop.
<?php
require_once('../Services/Twilio.php'); // Loads the library
$sid = "ACxxxxxxxx";
$token = "xxxxxxxxxxxxxxxx";
$client = new Services_Twilio($sid, $token);
$number = $client->account->incoming_phone_numbers->create(array(
"FriendlyName" => "REST電話番号購入テスト",
"VoiceUrl" => "http://xxx.xxx.xxx.xxx/twiml.xml",
"PhoneNumber" => "+8150xxxxyyyy",
"VoiceMethod" => "GET"
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment