Twilio 使用参与者标签检查会议中是否存在参与者
我试过了 但是,即使参与者不在会议中,也会返回参与者Twilio 使用参与者标签检查会议中是否存在参与者,twilio,twilio-api,twilio-python,Twilio,Twilio Api,Twilio Python,我试过了 但是,即使参与者不在会议中,也会返回参与者 participant = conferences[0].participants('participant') 如果参与者不在会议中,则返回错误请尝试以下操作: participant = conferences[0].participants('participant').fetch() function findParticipant() { return client.conferences('CFba9989...')
participant = conferences[0].participants('participant')
如果参与者不在会议中,则返回错误请尝试以下操作:
participant = conferences[0].participants('participant').fetch()
function findParticipant() {
return client.conferences('CFba9989...')
.participants
.list()
}
let findMe = 'Winston';
findParticipant()
.then(participants => {
let result = participants.filter(participant => participant.label === findMe )
console.log(result);
}).catch(err => console.log(err.message))