如何通过 typeforms .list() 方法获取所有页面的 typeforms 内容?
how to get typeforms content of ALL pages via typeforms .list() method?
我想从类型表中提取所有数据。我想使用包含所有 "form IDs" 的列表,我正在使用 typeform 客户端包装器来做到这一点。
当我使用 .list() 方法(应该给我所有表格)时,它只给我第一页上的表格。
我正在寻找一种方法来指定我想要获取多少页/哪一页的内容。
非常感谢任何帮助!
from typeform import Typeform
typeform = Typeform(api_key)
form = typeform.forms
forms = form.list()
print(forms)
#gives me:
total_items': 60,
'page_count': 6,
'items': #here only the first 10/60
假设您正在使用这个 package
看起来您可以使用 form.list()
传递一些额外参数进行分页。
根据 Typeform documentation,每页最多可以检索 200 个表单。
这应该足以满足您的需求。
将页面大小传递给 forms.list
函数将为您提供所有表单。
forms: dict = typeform.forms.list(1,200)
如果您遇到任何问题,请告诉我。
我想从类型表中提取所有数据。我想使用包含所有 "form IDs" 的列表,我正在使用 typeform 客户端包装器来做到这一点。
当我使用 .list() 方法(应该给我所有表格)时,它只给我第一页上的表格。
我正在寻找一种方法来指定我想要获取多少页/哪一页的内容。
非常感谢任何帮助!
from typeform import Typeform
typeform = Typeform(api_key)
form = typeform.forms
forms = form.list()
print(forms)
#gives me:
total_items': 60,
'page_count': 6,
'items': #here only the first 10/60
假设您正在使用这个 package
看起来您可以使用 form.list()
传递一些额外参数进行分页。
根据 Typeform documentation,每页最多可以检索 200 个表单。
这应该足以满足您的需求。
将页面大小传递给 forms.list
函数将为您提供所有表单。
forms: dict = typeform.forms.list(1,200)
如果您遇到任何问题,请告诉我。