PHP code example of mixislv / reamaze-php-sdk
1. Go to this page and download the library: Download mixislv/reamaze-php-sdk 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/ */
mixislv / reamaze-php-sdk example snippets
use mixisLv\Reamaze\Api as ReamazeApi;
use mixisLv\Reamaze\Exceptions\ApiException;
use mixisLv\Reamaze\Params\Articles\GetParams;
$reamaze = new ReamazeApi(REAMAZE_BRAND, REAMAZE_LOGIN, REAMAZE_TOKEN);
try {
$response = $reamaze->articles->get(new GetParams(['slug' => 'test']));
var_dump($response);
} catch (ApiException $e) {
var_dump($e->getMessage());
}