如何在Wordpress REST API中检索Scheduled Post

时间:2017-01-16 11:09:29

标签: php wordpress rest api wordpress-rest-api

我花了很多时间为此找到合适的解决方案。 到目前为止,我能找到的最佳信息来自:https://wordpress.stackexchange.com/questions/191258/return-scheduled-posts-with-wp-rest-api

我正在使用Jetpack作为REST API,以及发布帖子的样子: https://public-api.wordpress.com/rest/v1.1/sites/MYDOMAIN.com/posts/

显然,您需要以具有edit_posts功能的用户身份登录。使用该功能,您还可以访问私有查询变量,包括post_status。

但该帖子没有解释如何在REST API调用中包含登录用户,以便我可以获得预定/未来的帖子。

由于

0 个答案:

没有答案