varsitynewsnetwork / wordpress-rest-api-client

A Wordpress API client for PHP
76 stars 64 forks source link

Which plugin do I need to install? #27

Open SuperSpe opened 4 years ago

SuperSpe commented 4 years ago

I got 401 unauthorized. After installing the plugin Wordpress RestFulAPI now I have GET http://127.0.0.1/wordpress/wp-json/wp/v2/users/2 resulted in a 403 Forbidden response: {"status":"error","error":"FORBIDDEN","code":"400","error_description":"Sorry, you are not allowed to access REST API."} `

angelxmoreno commented 1 year ago

@SuperSpe What version of WP are you running and are you using application passwords? WP 5.6+ have the plugin as part of core. Take a look at https://wprestclient.readthedocs.io/en/latest/misc/application-password/ to generate one