开发者

Change Number of Posts From tumblr.com/js

开发者 https://www.devze.com 2023-03-21 05:59 出处:网络
I\'开发者_开发知识库m using http://(website).tumblr.com/js to populate the blog on my website, but it only returns the ten most recent posts from my tumblr blog. I want to be able to look up older pos

I'开发者_开发知识库m using http://(website).tumblr.com/js to populate the blog on my website, but it only returns the ten most recent posts from my tumblr blog. I want to be able to look up older posts such as posts 11 - 20. Is there a way to do this?

Thanks


You can set the number of posts to return using the num parameter:

http://WEBSITE.tumblr.com/js?num=40

However, it isn't clear how much the value can be (for the standard tumblr API, you can't get more than 50 posts at a time).

If you want a greater degree of customizability, you will probably need to actually use the API and display the content yourself. The method to get posts is here:

http://www.tumblr.com/docs/en/api/v2#posts

And you want to change the limit and offset parameters.

0

精彩评论

暂无评论...
验证码 换一张
取 消