Pagination in Blogger Api V3

守給你的承諾、 提交于 2019-12-07 12:05:10

问题


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:


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 !



来源:https://stackoverflow.com/questions/25751619/pagination-in-blogger-api-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!