OAuth signature does not match

I am using the below in my wordpress for developing a oauth based application. WP-API (api generating plugin) WP API OAuth1 (oauth server)and WP API client-cli (oauth client library) at the below url is for the wp client-cli https://man-sudarshann-1.c9.io/api/ I am getting this error OAuth signature does not match when I click the AUTH button … Read more

WP Rest API max limit include parameter?

I’m using the rest API to get only selected posts though Rest API. I have used include=<ids> parameter. I have send the API request like: http://example.com/wp-json/wp/v2/posts?include=11,12 It works as expected. But, What happen If there are 200+ post IDs. The request like: http://example.com/wp-json/wp/v2/posts?include=11,12,…,200 What is the max limit for include parameter? I have used the … Read more

Extending wp JavaScript base class to make a post request to a custom REST endpoint

I’ve defined a REST endpoint /my-plugin/v1/post-read to show whether a post has been read or not, per-user. In PHP, my plugin keeps track of this depending on page views while logged in. I’m now trying to add a front-end AJAX control to let users manually set a post as “unread” or “read”. I’ve read that … Read more

WP-API and Basic Auth returning 403 on POST but not GET

I am using the latest, WP-API and the recommended Basic Auth, to test adding a post to WP from remote. I have Access Headers opened up on the WP side: header(“Access-Control-Allow-Origin: *”); header(“Access-Control-Allow-Methods: GET, POST, PUT, DELETE”); header(“Access-Control-Allow-Headers: Authorization, Content-Type”); When I submit a Get request to: http://sandbox.ravennainteractive.com/wp-json/wp/v2/posts the call easily authenticates and returns the … Read more

Keep getting 401 error from WordPress on AWS Lightsail

I’m trying to post to a WordPress server on an AWS Lightsail instance using node-wpapi. However, the server returns a 401 error. I already have a .htaccess file with RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}] to my .htaccess file and I already use ‘application passwords’ plugin. How can I use node-wpapi to access the server? My node-wpapi … Read more