_getDriversList3
(API version 2.0)WDS_DriverItem2[] _getDriversList3 ( string kodf , string username , string pass , int iddriver [ , string oskod ] [ , int disabled ] [ , int rating ] )
Description
The function returns drivers list of the company. Input fields could be used to filter the result.
Categories
Parameters
- string kodf
- Company code
- string username
- Username
- string pass
- Password
- int iddriver
- Unique driver identification
-1 - returns all drivers of the company - string oskod
- Personal number of driver (optional field)
- int disabled
- Driver validity (optional field)
0 - returns all active drivers
1 - returns all inactive drivers
Empty value - returns all drivers
Field not used - returns all drivers - int rating
- 0 - (default) off, nothing is evaluated
1 - evaluate Drive Style vs. PerfectDrive and return to output
Return value
-
WDS_DriverItem2
-
int
idskupina
ID group
-
int
iddriver
ID driver
-
string
jmeno
Name
-
string
prijmeni
Last name
-
string
mobil
phone
-
string
dallas
dallas (hexadecimal format)
-
string
groupname
group name
-
string
dallas1
dallas 1 (hexadecimal format)
-
string
dallas2
dallas 2 (hexadecimal format)
-
string
ucel
purpose
-
string
divize
division
-
string
stredisko
center
-
string
osobnicislo
personal number
-
int
disabled
disabled
-
string
vozidlo
vehicle
-
string
spz
license plate
-
string
pozn
note
-
float
amor
amor
-
float
pracdoba
working hours
-
string
adresa
address
-
string
telefon2
secondary phone
-
string
email
email address
-
string
prukaz
driver license number
-
string
pracz
company position
-
string
opravneni
permissions
-
string
employer
Employer (optional field)
-
string
use_mode
use mode (optional field)
-
string
dateOfDeletion
date and time of deactivation in format dd.mm.yyyy hh:ii:ss (optional field)
-
WDS_DriverRatingStyleItem
the rating always works with the current month
-
int
type
DrivingStyle = 0, PerfectDrive = 1
-
float
result
the same values returned by the api function in the rating attribute
(for type = 0 returns the rating from the getDriverRatingAccel API function,
for type = 1 returns the rating from the getPerfectDriveReport API function) -
float
stars
number of stars 0-5 (rounded to the nearest half star)
-
WDS_DriverRatingVehicleItem[]
list of vehicles driven during the period (included in the rating)
-
WDS_DriverRatingVehicleItem
-
int
idcar
vehicle id
-
string
identifier
vehicle identifier
-
int
idcar
-
WDS_DriverRatingVehicleItem
-
int
type
-
int
idskupina
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_getDriversList3($kodf, $username, $pass, $iddriver, $oskod, $disabled, $rating);
Test
To test the function, enter parameters in form below and press Try it out button.