2016-06-18 3 views

답변

3

개발자 전도사 Twilio가 여기 있습니다.

이렇게하려면 REST API를 사용해야합니다. Twilio Client 응용 프로그램의 경우 이미 서버 기반 응용 프로그램을 generate tokens에 사용해야하므로 회의 SID를 사용하고 participants using the REST API을 조회 할 수있는 다른 끝점을 원할 것입니다. 이 작업을 완료하면 현재 참여자 수를 얻기 위해 Android 애플리케이션에서 서버에 전화해야합니다.

from twilio.rest import TwilioRestClient 

# Your Account Sid and Auth Token from twilio.com/user/account 
account_sid = "your_account_sid" 
auth_token = "your_auth_token" 
client = TwilioRestClient(account_sid, auth_token) 

# A list of participant objects with the properties described above 
participants = client.participants('CFbbe4632a3c49700934481addd5ce1659').list() 
len(participants) 

당신은 또한 웹 소켓 연결을 통해 웹 서버 응용 프로그램에 연결하거나 수 : (즉, 예를 Twilio 클라이언트 서버에서 구현되는 것처럼), 그것은 다음과 같이 조금 보일 수 있습니다 파이썬을 사용하여

당신이 conference event을받을 때 참가자들을 찾아보고 방송합니다.

전혀 도움이되는지 알려주세요.

+0

http://stackoverflow.com/questions/27463301/how-is-the-twilio-conferencesid-generated이 기사에서 나를 도울 수 있습니까? –

+0

@philnash 여기 좀 도와주세요. http://stackoverflow.com/questions/38476090/twilio-conference-call-android-app –

관련 문제