0

我正在尝试使用以下代码从我的 Twilio 流程中列出执行: https ://www.twilio.com/docs/studio/rest-api/execution?code-sample=code-read-executions-filtered-by-date

我也尝试了 v2 代码: https ://www.twilio.com/docs/studio/rest-api/v2/execution#read-a-list-of-executions

但是每次我运行 Python 文件时,我都会得到返回的语句: AttributeError: 'Client' object has no attribute 'studio'

不确定我做错了什么......我可以使用其他命令,例如:

completed_calls = client.calls.list(status='completed', to=MyNumber, limit = 10) 

哪个工作正常。

任何意见,将不胜感激!谢谢!:)

4

1 回答 1

0

你能检查一下你是否有更新版本的 Twilio Python 帮助程序库吗?

pip show twilio

pip install --upgrade twilio

twilio-python(更改)

https://github.com/twilio/twilio-python/blob/master/CHANGES.md

于 2020-05-03T19:06:28.077 回答