17 lines
362 B
PHP
Executable File
17 lines
362 B
PHP
Executable File
<?php
|
|
require(__DIR__.'/../src/Twilio/autoload.php');
|
|
|
|
use Twilio\Rest\Client;
|
|
|
|
$sid = getenv('TWILIO_ACCOUNT_SID');
|
|
$token = getenv('TWILIO_AUTH_TOKEN');
|
|
$client = new Client($sid, $token);
|
|
|
|
// Create Trunk
|
|
$trunk = $client->trunking->v1->trunks->create(
|
|
[
|
|
"friendlyName" => "shiny trunk",
|
|
"secure" => false
|
|
]
|
|
);
|
|
print("\n".$trunk."\n"); |