在 Client.calls.create()l 中使用 twiml 属性
Use of twiml attribute in Client.calls.create()l
我是 Twilio 的新手,我正在尝试使用以下教程:
https://www.twilio.com/docs/voice/tutorials/how-to-make-outbound-phone-calls-python
使用 twiml 属性代替 Url:
call = client.calls.create(
twiml='<Response><Say>Ahoy, World!</Say></Response>',
to='+YYYYYYYYY',
from_='+XXXXXXXXX'
)
当我启动它时,收到以下错误:
responded with an error: error processing request: create() got an unexpected keyword argument 'twiml'
twiml 是否已弃用?我使用最新版本的 Twilio 和 Python 2.7。自从教程是在 2020 年 1 月制作以来,我觉得真的很奇怪。
使用 twiml 属性调用创建是一项较新的功能,因此需要更新版本的 Twilio Helper Library。您可以使用 url(如果您无法升级),它已经存在了一段时间并且需要 URL 其中 returns TwiML。
我是 Twilio 的新手,我正在尝试使用以下教程:
https://www.twilio.com/docs/voice/tutorials/how-to-make-outbound-phone-calls-python
使用 twiml 属性代替 Url:
call = client.calls.create(
twiml='<Response><Say>Ahoy, World!</Say></Response>',
to='+YYYYYYYYY',
from_='+XXXXXXXXX'
)
当我启动它时,收到以下错误:
responded with an error: error processing request: create() got an unexpected keyword argument 'twiml'
twiml 是否已弃用?我使用最新版本的 Twilio 和 Python 2.7。自从教程是在 2020 年 1 月制作以来,我觉得真的很奇怪。
使用 twiml 属性调用创建是一项较新的功能,因此需要更新版本的 Twilio Helper Library。您可以使用 url(如果您无法升级),它已经存在了一段时间并且需要 URL 其中 returns TwiML。