0

我可以https://public-api.wordpress.com/rest/v1/sites/www.website.com/posts/在 WP 网站上查看最新的 20 篇文章。

如何查看超过 20 个?或者查看所有帖子?

4

1 回答 1

1

文档中GET /sites/$site/posts/所述,只需在查询字符串中包含适当的number和参数即可。page

要查看前 100 个:

https://public-api.wordpress.com/rest/v1.1/sites/en.blog.wordpress.com/posts/?number=100&page=1

要查看第二个 100:

https://public-api.wordpress.com/rest/v1.1/sites/en.blog.wordpress.com/posts/?number=100&page=2

等等

于 2015-09-26T14:35:30.947 回答