簡體   English   中英

Twilio-如何確定電話會議的時長?

[英]Twilio - How to determine the length of a conference call?

我正在創建一個創建許多會議室的應用程序。 這些會議室將有一名專家/主持人,還將與會議室中的一個或多個人進行交談。 對於計費,我需要能夠找到電話會議的時長。 這個時間必須是從專家加入會議室(如果其他人在會議室)到最后一個人(不是專家)離開的時間。 有任何想法嗎?

Twilio開發人員布道者在這里。

使用會議列表資源可能會對您有所幫助。 您可以像這樣拉出會議詳細信息:

# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient

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

# A list of conference objects with the properties described above
conferences = client.conferences.list()

每個會議都有一個date_created和date_updated屬性,可用於確定長度。 我鏈接到的文檔顯示了如何根據會議室名稱和通話狀態等內容過濾會議列表。

如果您需要根據參加者獲得比使用者更精確的信息,則可以使用參加者資源來查找各個參加者花費在呼叫上的時間。

希望有幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM