moxie-lean/wp-endpoints-authors

This package is abandoned and no longer maintained. No replacement package was suggested.

Query against a WordPress site and get a JSON response with a collection of authors associated with your request.

1.0.1 2016-05-28 22:39 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:57:38 UTC


README

This package is depreciated. LEAN now uses the WordPress REST API plugins instead

Query against a WordPress site and get a JSON response with a collection of authors associated with your request.

Getting Started

The easiest way to install this package is by using composer from your terminal:

composer require moxie-lean/wp-endpoints-authors

Or by adding the following lines on your composer.json file

"require": {
  "moxie-lean/wp-endpoints-authors": "dev-master"
}

This will download the files from the packagist site and set you up with the latest version located on master branch of the repository.

After that you can include the autoload.php file in order to be able to autoload the class during the object creation.

include '/vendor/autoload.php';

\Lean\Endpoints\Authors::init();

Features

Returns only a collection of authors.

Usage.

The default URL is:

/wp-json/leean/v1/authors
```

By default the collection is the list of users excluding administrators, you can use most
of the WP_User_Query params in order to update your results and there is a filter available
to override query arguments.

## Request examples

Get list of authors.

```json
wp-json/leean/v1/authors
```