Using OAuth Authentication to Access Stats via the WordPress Public API
-
Hello, I have been unable to use OAuth authentication to successfully make callouts to the public API (https://public-api.wordpress.com/rest/v1.1/sites/%5Bmy site’s url]/stats). I only get redirected to a 404 page on my site’s base URL/wp-login.php. I’m using the client ID/client key a web app (made in this section of the WordPress developer site: https://developer.wordpress.com/apps/). If it affects anything the site is self-hosted. Please let me know if you have any insight into this issue.
-
Hi, are you using the site’s full URL as listed in the site’s General Settings?
I’m not as familiar with the developer tools, but I want to say you’ll need to use that url (including the subdirectory) and that you’ll likely need to encode the slash somehow. Have you tried that?
- The topic ‘Using OAuth Authentication to Access Stats via the WordPress Public API’ is closed to new replies.