How can I create a wordpress post in another wordpress site using their REST API?

I want to create and update a wordpress post from one site which would automatically post to another wordpress site. I’ve tried playing around with the REST API in wordpres 4.7+ but I keep getting the following message

{"code":"rest_cannot_create","message":"Sorry, you are not allowed to create posts as this user.","data":{"status":401}}

Any thoughts on how I can tackle this?

Thanks

Read more here: How can I create a wordpress post in another wordpress site using their REST API?

Leave a Reply

Your email address will not be published. Required fields are marked *