我使用MailgunAPI来获取与某个事件一起发送的电子邮件数量的一些数据,然后是邮件的主题和收件人等详细信息
答复限制在300人,但我需要几千人
我知道我需要使用分页,但我不知道如何使用它。我想应该是这样的:
nextUrl = status['paging']['next']
data = requests.get(nextUrl, auth=("api", API_KEY), params ={"limit":300})
这是我目前为止的代码:
^{pr2}$在中创建此表:
现在这个表正是我想要的,但是我不想被限制在300个结果之内。我可能需要成千上万的人
有人能告诉我如何使用分页来做到这一点吗?在
非常感谢
documentation声明始终返回“上一个url”和“下一个url”。在
所以,看来你得反复打电话(如这样)。注意:这是伪代码,只是一个想法:
相关问题 更多 >
编程相关推荐