_setRightsUser2Car
(API version 2.0)int _setRightsUser2Car ( string kodf , string username , string pass , int IdUser , int Rights , string strCarsId )
Description
The function updates users' rights to vehicles.
Categories
Parameters
- string kodf
- Company code
- string username
- Login username
- string pass
- Login password
- int IdUser
- Id of the user to whom we assign the rights
- int Rights
- Rights - 1 - write, 2 - read, 0 - remove
- string strCarsId
- The ID of the vehicles to which we assign (1), or we take the user to the comma separated by commas, such as 2,8,10.
At the same time assigning rights to the vehicle will automatically assign rights to the group in which the vehicle is.
Return value
int
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_setRightsUser2Car($kodf, $username, $pass, $IdUser, $Rights, $strCarsId);
Test
To test the function, enter parameters in form below and press Try it out button.