_sendShellCmdToUnit

(API version 2.0)

int _sendShellCmdToUnit ( string kodf , string username , string pass [ , int foridcar ] , string text [ , string valid_to ] [ , string unitserialnumber ] )

Description

The function sends a command to the unit

Categories

Parameters

string kodf
company code
string username
user name
string pass
password
int foridcar
vehicle ID - If foridcar is filled in, the unitserialnumber can be ignored.
string text
text in ASCII
string valid_to
message valid (UTC) - default and max expiration is 5min
string unitserialnumber
If unitserialnumber is filled in, the command is sent to the unit (the foridcar parameter is ignored)

Return value

int

0 - login failed
-1 - invalid command
-2 - vehicle not exist or you don´t have rights
-3 - error db

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_sendShellCmdToUnit($kodf, $username, $pass, $foridcar, $text, $valid_to, $unitserialnumber);

Test

To test the function, enter parameters in form below and press Try it out button.

company code
user name
password
vehicle ID - If foridcar is filled in, the unitserialnumber can be ignored.
text in ASCII
message valid (UTC) - default and max expiration is 5min
If unitserialnumber is filled in, the command is sent to the unit (the foridcar parameter is ignored)

* Required field