File "trunk.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/twilio/sdk/example/trunk.php
File size: 362 bytes
MIME-type: text/x-php
Charset: utf-8

<?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");