API client for ajax.systems security system
Warning This library is based on grey/reverse engineered Ajax Systems Web API which was closed at 2018. So currently this library doesn't work.
Future upgrade New non-public Ajax Systems Enterprise API is under development right now. Please, star this project if you interested to be announced once Enterprise API become public and available to all clients.
(Sublists contain cases when library potentially can be used)
composer require igormukhingmailcom/ajax-systems-api
<?php
require('vendor/autoload.php');
use Mukhin\AjaxSystemsApi\AjaxSystemsApiClient;
use Mukhin\AjaxSystemsApi\Exception\Exception;
$ajaxSystemsClient = new AjaxSystemsApiClient();
try {
$ajaxSystemsClient->login('login', 'password');
$ajaxSystemsClient->getCsaConnection();
$ajaxSystemsClient->setArm(AjaxSystemsApiClient::ARM_STATE_PARTIAL, 'hub id');
echo "Partially armed";
} catch (Exception $e) {
echo $e->getMessage();
}
composer install
# Put your credentials to credentials.php
cp examples/credentials.php.dist examples/credentials.php
nano examples/credentials.php
# Go to any example an run it
cd examples/arm
php index.php