我可以在我的WordPress网站上使用RESTAPI和下面的curl请求格式创建帖子。网站使用基本身份验证插件进行身份验证。
curl --user "username:password" -X POST -i https://mywebsite.com/wp-json/wp/v2/posts?title=myTitle&content=MyContent
curl --user "username:password" -X POST -i https://mywebsite.com/wp-json/wp/v2/posts -d \'{"title":"NEw tiitle"}\'