for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Uon\Endpoints;
use Uon\Client;
/**
* Class Reminders
*
* @package Uon\Endpoint
*/
class Reminders extends Client
{
* Create new reminder
* @link https://api.u-on.ru/{key}/reminder/create.{_format}
* @param array $parameters List of parameters
* @return null|object|\Uon\Interfaces\ClientInterface
public function create(array $parameters)
// Set HTTP params
$this->type = 'post';
$this->endpoint = 'reminder/create';
$this->params = $parameters;
return $this->done();
}
* Get list of all reminder
* @link https://api.u-on.ru/{key}/reminder/{page}.{_format}
* @param int $page Unique ID of reminder
public function all(int $page = 1)
$this->endpoint = 'reminder/' . $page;
* Get reminder by id
* @link https://api.u-on.ru/{key}/reminder/{r_id}.{_format}
* @param int $id Unique ID of reminder
public function get(int $id)
$this->type = 'get';
$this->endpoint = 'reminder/' . $id;