我们尝试使用此https://developers.podio.com/doc/tasks/get-tasks-77949 - Sandbox 检索组织下的任务。我们只得到 100 个任务,但我们需要带上整个任务。有什么方法可以让我们完成 100 多个任务。请帮忙。
谢谢。
我们尝试使用此https://developers.podio.com/doc/tasks/get-tasks-77949 - Sandbox 检索组织下的任务。我们只得到 100 个任务,但我们需要带上整个任务。有什么方法可以让我们完成 100 多个任务。请帮忙。
谢谢。
还有另一个名为“offset”的参数,它应该适用于获得另外 100 个任务。
这是Ruby的工作示例:
all_tasks = []
options = {'responsible' => <user id>, 'limit' => 100, 'sort_by' => 'created_on', 'sort_desc' => true}
while true
options['offset'] = all_tasks.length
result = Podio::Task.find_all(options)
all_tasks += result
break if result.empty? || result.length < options['limit']
end
puts all_tasks.length
我执行的输出是106
:)