<?php // Get the PHP helper library from twilio.com/docs/php/install require_once '/path/to/vendor/autoload.php'; // Loads the library use Twilio\Rest\Client; // Your Account Sid and Auth Token from twilio.com/user/account $sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; $token = "your_auth_token"; $client = new Client($sid, $token); // Get an object from its sid. If you do not have a sid, // check out the list resource examples on this page $participant = $client->conferences("CFbbe4632a3c49700934481addd5ce1659")->participants("CA386025c9bf5d6052a1d1ea42b4d16662")->fetch(); echo $participant->startConferenceOnEnter;
<?php // Get the PHP helper library from twilio.com/docs/php/install require_once '/path/to/vendor/autoload.php'; // Loads the library use Twilio\Rest\Client; // Your Account Sid and Auth Token from twilio.com/user/account $sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; $token = "your_auth_token"; $client = new Client($sid, $token); // Get an object from its sid. If you do not have a sid, // check out the list resource examples on this page $conference = $client->conferences("CFbbe46ff1274e283f7e3ac1df0072ab39")->fetch(); echo $conference->status;
<?php // Get the PHP helper library from twilio.com/docs/php/install require_once '/path/to/vendor/autoload.php'; // Loads the library use Twilio\Rest\Client; // Your Account Sid and Auth Token from twilio.com/user/account $sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; $token = "your_auth_token"; $client = new Client($sid, $token); $participants = $client->conferences("CFbbe4632a3c49700934481addd5ce1659")->participants->read(); // Loop over the list of participants and echo a property for each one foreach ($participants as $participant) { echo $participant->muted; }