拨入会议时添加参与者标签 (Twilio)

Adding a participant label when dialling in conference (Twilio)

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

这段代码返回错误

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

我从https://www.twilio.com/docs/voice/api/conference-participant-resource那里读到标签是参与者的参数之一。

当我升级 Python Twilio 帮助程序库时,它对我有用:

成功:成功安装 twilio-6.45.3

没用:找到现有安装:twilio 6.39.0

pip install --upgrade twilio

看来要在这里添加:

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