Articles

Extends \mixisLv\Reamaze\BaseApi

Class Articles

package

mixisLv\Reamaze\Api

author

Mikus Rozenbergs mikus.rozenbergs@gmail.com

Methods

__construct

__construct(\mixisLv\Reamaze\Api $api) 
inherited
Warning: count(): Parameter must be an array or an object that implements Countable in phar://C:/WinNMP/bin/phpDocumentor/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar://C:/WinNMP/bin/phpDocumentor/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

Arguments

Creating Articles

create(\mixisLv\Reamaze\Params\Articles\CreateParams $params) : \stdClass

$params = new \mixisLv\Reamaze\Params\Articles\RetrieveParams\CreateParams(); $params->slug = 'test'; $response = $reamaze->articles->create($params);

see https://www.reamaze.com/api/post_article
Throws
\mixisLv\Reamaze\Exceptions\ApiException

Arguments

$params

\mixisLv\Reamaze\Params\Articles\CreateParams

Response

\stdClass

Get Article

get(\mixisLv\Reamaze\Params\Articles\GetParams $params) : \stdClass

$params = new \mixisLv\Reamaze\Params\Articles\RetrieveParams\GetParams(); $params->slug = 'test'; $response = $reamaze->articles->get($params);

see https://www.reamaze.com/api/get_article
Throws
\mixisLv\Reamaze\Exceptions\ApiException

Arguments

Response

\stdClass

Retrieving Articles

retrieve(\mixisLv\Reamaze\Params\Articles\RetrieveParams|null $params = null) : \stdClass

$params = new \mixisLv\Reamaze\Params\Articles\RetrieveParams\RetrieveParams(); $params->page = 1; $params->q = 'example' $response = $reamaze->articles->retrieve($params);

see https://www.reamaze.com/api/get_articles
Throws
\mixisLv\Reamaze\Exceptions\ApiException

Arguments

$params

\mixisLv\Reamaze\Params\Articles\RetrieveParams|null

Response

\stdClass

Updating Articles

update(\mixisLv\Reamaze\Params\Articles\UpdateParams $params) : \stdClass

$params = new \mixisLv\Reamaze\Params\Articles\RetrieveParams\UpdateParams(); $params->slug = 'test'; $params->title = 'new title'; $params->body = 'new body'; $response = $reamaze->articles->update($params);

see https://www.reamaze.com/api/put_article
Throws
\mixisLv\Reamaze\Exceptions\ApiException

Arguments

Response

\stdClass

Properties

api

api : 
inherited

Type(s)