_updateUser
(API version 2.0)int _updateUser ( string kodf , string username , string pass , WDS_UserItem UserItem )
Description
The function updates the user (Except for changes to usernames, passwords, groups and vehicle rights).
Categories
Parameters
- string kodf
- Company code
- string username
- Login username
- string pass
- Login password
-
WDS_UserItem UserItem
-
int
IdUser
ID User
-
string
Username
unique User name
-
string
Pwd
password
-
int
ChangePwd
The user must change the password when logging in for the first time
-
int
UserRights
práva:
0 - admin
1 - user
2 - demo -
string
ValidFrom
Valid from
-
string
ValidTo
Valid until - Empty is still valid
-
string
Cargroups
Group rights
-
string
CarsRead
Vehicle rights - reading
-
string
CarsWrite
Vehicle rights - writing
-
string
Email
email adress
-
string
Mobil
mobil
-
string
PersCode
Personal code
-
string
Layer
Layer
-
int
SendSMS
The right to send SMS
-
int
MaxSMS
Maximum number of SMS per calendar month
-
int
PageLimit
Page limit
-
int
CarRental
Car rental administrator
-
string
Note
Note
-
int
ShowLogBook
Show log book 0 / 1
-
int
ShowOdom
show odometer 0 / 1
-
int
ShowMap
Show map 0 / 1
-
int
BFullEdit
Complete editing of the log book
-
int
BDriver
log book - Editing Driver
-
int
BPurpose
log book - Purpose editing
-
int
BPurposeSelect
log book - Editing purpose only by selecting from combobox
-
int
BPrivate
log book- Edit driving type (private / business)
-
int
BPrivate10
log book - From private to business
-
int
BPrivate01
log book - from business to private
-
int
BOdom
log book -Edit the actual odometer
-
int
BNote
log book - Editing a note
-
int
BInfoF
log book - Editing company information
-
int
BInsert
log book - Allow inserting new rides
-
int
BInsert0
log book - Allow inserting new business route
-
int
BInsert1
log book - Allow inserting private route
-
int
BConnect
log book - Allow connect route
-
int
BDelete
log book - Allow deleting rides
-
int
EditDriver
Editing Driver
-
int
EditCarView
Editing the appearance of the vehicle
-
int
EditBookView
log book - Editing the appearance of a driving book for vehicles with write rights
-
int
EditCosts
log book - Edit cargo and fuel cards
-
int
EditCostsOwn
Log Book - Edit costs only by hand
-
int
ShowPrivateR
Show private route
-
int
IdUser
- Object with data - identical to what the getUsers function returns
Return value
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_updateUser($kodf, $username, $pass, $UserItem);
Test
To test the function, enter parameters in form below and press Try it out button.