Pagination in Blogger Api V3

2019-05-18 13:48发布

how can i get 10 posts and then get the older 10 posts and so on i mean pagination i need this in blogger API V3

i tried https://www.googleapis.com/blogger/v3/blogs/1309320265504420965/posts?maxResults=10&start-index=1&key=[your-key]

and tried https://www.googleapis.com/blogger/v3/blogs/1309320265504420965/posts?maxResults=10&start-index=2&key=[your-key] but nothing changed

start-index does not seem to be working in V3

even if i changed the value of start-index .. it doesn't change the reply

any ideas ?

1条回答
smile是对你的礼貌
2楼-- · 2019-05-18 14:15

after checking the Blogger API V3 again and again i found that , u can find tag named "nextPageToken" and it is a string u can use this string that contain next page ID and add it to the parameter "pageToken" in the request and u ll get pagination feature work !

查看更多
登录 后发表回答