1. Go to this page and download the library: Download it-studio/centralnews library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
it-studio / centralnews example snippets
$params = array(
CentralNews\Service\Client::URL => 'http://localhost',
CentralNews\Service\Client::TOKEN => 'xxxxxxxxxxxxxxx',
CentralNews\Service\Client::USER => 'user',
CentralNews\Service\Client::PASSWORD => 'password',
);
$client = new CentralNews\Service\Client($params);
// proměnné použité dále v příkladech
$groupId = 1; // je číselný identifikátor skupiny (1,2, ..)
$email = "[email protected]"; // je platná emailová adresa