Тема: Php wialon
How i can get drivers ?
<?php
include('wialon.php');
$wialon_api = new Wialon();
// old username and password login is deprecated, use token login
$token = '$token';
$result = $wialon_api->login($token);
$json = json_decode($result, true);
if(!isset($json['error'])){
echo "Hello, ".$json['user']['nm']."!<br>";
$userId = $json['user']['id'];
echo "<br>$userId<br>";
echo $wialon_api->core_search_item();
$wialon_api->logout();
} else {
echo WialonError::error($json['error']);
}