_getCarsList2

(API version 2.0)

WDS_CarItem2[] _getCarsList2 ( string kodf , string username , string pass [ , int activeOnly ] )

Description

The function returns a list of all vehicles that corresponds to the rights of the logged-on user. If user is from a dealer company and has enabled system accoun, than function returns list of all vehicles from all dealer's companies. But returns values other than _getCarsList

Categories

Parameters

string kodf
company code
string username
username
string pass
password
int activeOnly
0 - returns all vehicles (default)
1 - returns active only vehicles

Return value

WDS_CarItem2[]
  • WDS_CarItem2
    • int cargroupid

      Group ID in the system. The vehicle may be included into group.

    • int carid

      Vehicle ID in the system

    • string identifikator

      Vehicle registration number

    • string driver

      Default driver. If not filled in, the value is empty.

    • string mobil

      Telephone number to communicate with the vehicle. This value is used if the vehicle is equipped with a telephone for SMS communication.

    • int userrights

      User rights.

    • int type

      1 .. bus
      2 .. electromobile
      3 .. motorcycle
      4 .. lorry
      5 .. semi-trailer
      6 .. passanger
      7 .. trailer
      8 .. crop production
      9 .. tractor unit
      10 .. special vehicle
      11 .. building machine
      12.. inert sprayer
      13 .. chemical spreyer
      14 .. technological vehicle
      15 .. tractor
      16 .. special vehicle
      17 .. forklift
      18 .. delivery van
      19 .. ambulance
      20 .. x
      21 .. passanger medium
      22 .. passanger large
      23 .. cargo truck small
      24 .. cargo truck medium
      25 .. cargo truck big
      26 .. hybrid
      27 .. plug-in hybrid

    • int online

      0 / 1

    • int disabled

      The vehicle is disabled. It holds value 0 or 1.

    • string gpsmobil

      SIM card phone number in GPS device

    • string gpsmobil2

      SIM card phone number in GPS device (secondary)

    • string imei

      International mobile equipment identity

    • string sn

      Serial number of the GPS unit.

    • int unittype

      device type

    • string unitname

      Unit name.

    • long swnastav

      vehicle icon

    • int tdevice

      Device with which the GPS unit communicates in the vehicle: 1- Garmin, 2 - Dynavix, 3 - Mobile app WD Fleet

    • string disabledate

      Date of vehicle decommissioning.

    • int carsharing

      Enabled for carsharing

    • int immobilizer

      Immobilizer on

    • string objectNum

      Objcet number

    • int odometerKm

      Odometer state

    • int kmFromLastService

      Kilometers from the last service
      Valid value less then 100000

    • int daysFromLastService

      Days from last service
      Valid value less then 1825

    • int kmToNextService

      Kilometers to the next service
      Valid value less then 100000

    • int daysToNextService

      Days to the next service
      Valid value less then 1825

    • string installationdate

      Date of installation of the unit in the vehicle

    • string wrnlName

      Warning lights configuration file name

    • string oemStatusChanged

      Status change date

    • string oemStatus

      Disabled – the “Enable OEM data service” feature is turned off

      Enabled – the “Enable OEM data service” feature is turned on

      Present - oem connected or embedded hardware available

      ActivationPending - Activation has been requested through API

      ActivationRequested - Activation message request has been received from device

      ConfigurationSent - Configuration message has been sent to device

      ConfigurationSendFailed - System was unable to send configuration message to device

      ConfigurationFailed - Configuration message was rejected by device

      Configured - Device accepted configuration message

      ActivationSent - Activation message has been sent to device

      ActivationSendFailed - System was unable to send activation message to device

      ActivationFailed - Activation message has been rejected by device, or an error occurred while finalizing activation

      Activated - Activation message was accepted by device and activation has been finalized

      DeactivationPending - Deactivation has been requested through API

      DeactivationSent - Deactivation message has been sent to device

      DeactivationSendFailed - System was unable to send deactivation message to device

      DeactivationFailed - Deactivation message has been rejected by device, or an error occurred while inalizing deactivation

      Deactivated - Device has accepted deactivation and the deactivation has been finalized

      ForcefullyDeactivated - Pairing between device and device has been forcefully deactivated

      RequiresManualActivation - System is unable to perform automatic activation, both VIN and device erialNumber are required to perform activation

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_getCarsList2($kodf, $username, $pass, $activeOnly);

Test

To test the function, enter parameters in form below and press Try it out button.

company code
username
password
0 - returns all vehicles (default)
1 - returns active only vehicles

* Required field