我正在创建一个使用twilio会议的应用程序,我可以使用下面的代码获得conference
$client = new Services_Twilio('AC123', '123');
foreach ($client->account->conferences->getIterator(0, 50, array(
'FriendlyName' => 'yourConf'
)) as $conf) {
print $conf->sid;
}现在我要所有的人都参加SID,这样我才能继续前进。
发布于 2015-12-18 17:11:33
开发人员再次在这里传道:)
一旦你有了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文档中的文档和示例。
https://stackoverflow.com/questions/34359749
复制相似问题