This is a PHP client for the WordPress JSON REST API. It's designed to work with WordPress
without the need for an external library. This is done by leveraging the WordPress HTTP API through
the WP_Http
class.
The client was created as part of an article on how to design a class.
This is still a work in progress. The client currently only supports the get_users
method. You can also only authenticate using
basic authentication.
$client = WP_API_Client::create('http://your.wordpress.org', 'your_token');
$users = $client->get_users();
For bugs or feature requests, please create an issue.