_setCarWorkLogList
(API version 2.0)int _setCarWorkLogList ( string kodf , string username , string pass , int IdWorkLogList , WDS_AssocArrayItem[] DataChange )
Description
The function sets some items for vehicle operation record
Categories
Parameters
- string kodf
- Company login code
- string username
- Login username
- string pass
- Login password
- int IdWorkLogList
- vehicle operation record Id
-
WDS_AssocArrayItem[] DataChange
-
WDS_AssocArrayItem
-
string
text
key
-
string
value
value
-
string
text
-
WDS_AssocArrayItem
- frame of changed values - associative frame text => value. e.g.
array(
0 => array('FuelStart'), 1=> 45.5),
1 => array('FuelEnd'), 1=> 12.8)
)
enter only the values you want to change in the frame. Allowed values list:
FuelStart - initial state of the fuel
FuelEnd - final state of fuel
Return value
int
-1 user not logged in
-2 user does not have the right to staples in general
-3 has not been specified for update
-4 update failed, please try again later
-5 idstazky not entered
-6 user has no right to this vehicle operation record ID
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_setCarWorkLogList($kodf, $username, $pass, $IdWorkLogList, $DataChange);
Test
To test the function, enter parameters in form below and press Try it out button.