_createUser
(API version 2.0)int _createUser ( string kodf , string username , string pass , string newusername , string newpass , string type , int changepass )
Description
Function creates a new user.
The user does not have the rights to vehicles, groups or drivers,
can not edit.
Categories
Parameters
- string kodf
- Company code
- string username
- Login username
- string pass
- Login password
- string newusername
- New username
- string newpass
- new password
- string type
- Typ (demo, user, admin)
- int changepass
- 0/1 - The user must change the password when logging in for the first time
Return value
-4 .. the password does not meet the password policy requirements (password length, allowed characters, ...)
-3 .. password can not be empty
-2 .. username can not be empty
-1 .. username exists
0 .. login failed or user is not admin
returnted value > 0 .. new user id
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_createUser($kodf, $username, $pass, $newusername, $newpass, $type, $changepass);
Test
To test the function, enter parameters in form below and press Try it out button.