Messages

Extends \mixisLv\Reamaze\BaseApi

Class Messages

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 Messages

create(string $slug, \mixisLv\Reamaze\Params\Messages\CreateParams $params) : \stdClass

$message = new \mixisLv\Reamaze\Params\Messages\CreateParams\CreateParams([ "body" => "Nullam rutrum cursus arcu, et viverra nisl finibus molestie.", "recipients" => ["recipient@example.com"], "user" => [ "name" => "Lorem Ipsum", "email" => "lorem.ipsum@example.com", ], ]); $response = $reamaze->messages->create('new-conversation', $message);

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

Arguments

$slug

string

Response

\stdClass

Retrieving Messages

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

$params = new \mixisLv\Reamaze\Params\Messages\RetrieveParams\RetrieveParams(['slug'=> 'new-conversation']); $response = $reamaze->messages->retrieve($params);

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

Arguments

$params

\mixisLv\Reamaze\Params\Messages\RetrieveParams|null

Response

\stdClass

Properties