Adding a participant label when dialling in conference (Twilio)

北城以北 提交于 2021-01-29 18:03:57

问题


conference.participants.create(from_=caller_id, to=to_number, label='customer')

This piece of code is returning an error

TypeError: create() got an unexpected keyword argument 'label'

I read from https://www.twilio.com/docs/voice/api/conference-participant-resource that label is one of the parameters of participant.


回答1:


When I upgraded the Python Twilio helper library, it worked for me:

Worked: Successfully installed twilio-6.45.3

Didn't Work: Found existing installation: twilio 6.39.0

pip install --upgrade twilio

Looks to be added here:

https://github.com/twilio/twilio-python/blob/main/CHANGES.md#2020-06-24-version-6430



来源:https://stackoverflow.com/questions/64041544/adding-a-participant-label-when-dialling-in-conference-twilio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!