Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
require "Services/Twilio/Capability.php";
$accountSid = "ACxxxxxxxxxxxxxxxxxxxxx";
$authToken = "yyyyyyyyyyyyyyyyyyyy";
$appSid = "APxxxxxxxxxxxxxxxxx";
$clientName = "Jenny";
$capability = new Services_Twilio_Capability($accountSid, $authToken);
$capability->allowClientIncoming($clientName);
$capability->allowClientOutgoing($appSid, array(), $clientName);
$token = $capability->generateToken(3600);
echo $token;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.