Blogger Api V3中的分页 [英] Pagination in Blogger Api V3

查看:50
本文介绍了Blogger Api V3中的分页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何获得10个帖子,然后获得较旧的10个帖子,依此类推 我的意思是分页 我在Blogger API V3中需要

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

我尝试过 https ://www.googleapis.com/blogger/v3/blogs/1309320265504420965/posts?maxResults = 10& start-index = 1& key = [您的键]

并尝试 https ://www.googleapis.com/blogger/v3/blogs/1309320265504420965/posts?maxResults = 10& start-index = 2& key = [您的键] 但没有改变

开始索引在V3中似乎不起作用

start-index does not seem to be working in V3

即使我更改了start-index的值,它也不会更改回复

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

有什么想法吗?

推荐答案

我发现,您可以找到名为"nextPageToken"的标签,它是一个字符串 您可以使用包含下一个页面ID的字符串,并将其添加到请求中的参数"pageToken"中,然后您将获得分页功能!

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 !

这篇关于Blogger Api V3中的分页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆