twilio从php中的会议SID名称获取会议参与者信息


twilio get conference participants information from conference SID name in php

我正在创建一个使用twilio会议的应用程序,我可以使用以下代码获取会议SID

$client = new Services_Twilio('AC123', '123');
foreach ($client->account->conferences->getIterator(0, 50, array(
   'FriendlyName' => 'yourConf'
)) as $conf) {
    print $conf->sid;
}

现在我想让所有人都参与SID,这样我就可以继续

Twilio开发人员再次在此发布:)

一旦你有了会议SID,你就可以得到这样的参与者:

$client = new Services_Twilio('AC123', '123');
foreach ($client->account->conferences->getIterator(0, 50, array(
   'FriendlyName' => 'yourConf'
)) as $conf) {
    print $conf->sid;
    $participants = $client->account->conferences->get(sid)->participants
    foreach ($participants as $participant) {
        // Do something with the participant
    }
}

您可以在Twilio文档中看到该方法的文档和示例。