我想获取所有生成的页面的信息。这是我的代码:
import requests
response = requests.get(url, headers=headers)
final_response = response.json()
print(final_response)
我收到这样的回复:
{
"collection": [
{
"uri": "https://api.calendly.com/event_types/AAAAAAAAAAAAAAAA",
}
],
"pagination": {
"count": 1,
"next_page":"https://api.calendly.com/event_types?
count=1&page_token=sNjq4TvMDfUHEl7zHRR0k0E1PCEJWvdi"
}
使用生成的 page_token (https://api.calendly.com/event_types?count=1&page_token=sNjq4TvMDfUHEl7zHRR0k0E1PCEJWvdi),我想迭代所有页面并获取所有信息,直到“next_page”为“null”