cwteam/wialon

Wialon Remote API PHP library.

v1.0.0 2016-07-08 17:47 UTC

This package is not auto-updated.

Last update: 2024-03-25 12:55:40 UTC


README

Wialon - allows to perform any Wialon Remote API requests according to documentation. cUrl required.

WialonError - simple convert Wialon error codes to text messages.

Usage

	
	use CWTeam\Wialon\Wialon;
	use CWTeam\Wialon\WialonError;

	$wialon_api = new Wialon();

	// old username and password login is deprecated, use token login
	$token = 'Your token here';
	$result = $wialon_api->login($token);
	$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']);
	}

Documentation

Wialon Remote Api documentation
New authorization way