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
}
}
可以看到the documentation and examples for this method in the Twilio docs.
我正在创建一个使用 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
}
}
可以看到the documentation and examples for this method in the Twilio docs.