PHP SDK for blua.blue
composer require blua-blue/blua-blue-php-sdk
require __DIR__ . 'vendor/autoload.php'; $client = new BluaBlue\Client('userName', 'Password', 'https://my-blua-blue-installation.com/api.v1/'); $allArticles = $client->getArticleList();
new Client($userName, $password, [$apiEndpoint])
The API endpoint defaults to https://blua.blue/api.v1/
This method accepts either the unique ID or the unique article-slug of a particular article.
Without any properties, this method retrieves up to 300 articles.
If authenticated user is admin and no author is set: Any article
If authenticated user is not admin and no author is set: Any published article
If authenticated user equals $author OR authenticated user is admin: All articles of author
If authenticated user is not admin: All articles of given author with the status published
NOTE: at time of publishing offset & limit are not yet implemented in the official blua.blue repository