Wialon
- allows to perform any Wialon Remote API requests according to documentation. cUrl required.
WialonError
- simple convert Wialon error codes to text messages.
include('wialon.php');
$wialon_api = new Wialon();
$result = $wialon_api->login('wialon_test','test');
$json = json_decode($result, true);
if(!isset($json['error'])){
echo $wialon_api->core_search_item('{"id":717359,"flags":0x1}');
$wialon_api->logout();
} else {
echo WialonError::error($json['error']);
}