_setCarPeriph

(API version 2.0)

int _setCarPeriph ( string kodf , string username , string pass , int IdCar , WDS_AssocArrayItem[] ArrUpdate )

Description

The function sets the vehicle parameters


The $ArrUpdate field contains an array of associative fields Value name => value. Each item must occur exactly once in this field. The names correspond to the WDS_CarPeriphItem object.
The listed items will change. The list of parameters may increase in the future as the WDS_CarPeriphItem object is extended
However, the API function is not able to check for data consistency. It is therefore necessary to check before sending new values to the API:

if ($item->Prut0 == 0) $item->Prut0 = $item->Prut1;
if ($item->Prut0 == 0) $item->Prut0 = $item->Prut2;
if ($item->Prut0 == 0) $item->Prut0 = $item->Prut3;
if ($item->Prut0 == 0) $item->Prut0 = $item->Prut4
In the BitSettings item, only user enabled settings can be changed


Translated with www.DeepL.com/Translator (free version)

Categories

Parameters

string kodf
company code
string username
username
string pass
password
int IdCar
car identifier
WDS_AssocArrayItem[] ArrUpdate
array of updated parametres + values

Return value

int

-1 - user not logged in
-2 - user does not have admin rights
-3 - vehicle not entered
-4 - user does not have access rights to the vehicle
-5 - user does not have access rights on the vehicle

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_setCarPeriph($kodf, $username, $pass, $IdCar, $ArrUpdate);

Test

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

company code
username
password
car identifier
WDS_AssocArrayItem[] ArrUpdate
WDS_AssocArrayItem item
key
value
array of updated parametres + values

* Required field