_getMess

(API version 2.0)

WDS_MessItem[] _getMess ( string kodf , string username , string pass , int idcar , string datefrom , string dateto , int type )

Description

Function returns sent or received messages.

Categories

Parameters

string kodf
company code
string username
user name
string pass
password
int idcar
vehicle ID
string datefrom
date from
string dateto
date to
int type
type of message (1 - incoming, 2 - sent, 0 - all, 10 - all filter by orig_datetime, 11 - incoming filter by orig_datetime ) - "incoming" = to the portal, "sent" = from the portal

Return value

WDS_MessItem[]
  • WDS_MessItem
    • int Idcar

      vehicle ID

    • int Dev

      device

    • string MessStatus

      message status
      "read" - message read
      "not_read" - message not read
      "deleted" - message deleted
      "not_delivered" - message not delivered

    • string MessFrom

      sender identified by username or phone number (sms)

    • string MessTime

      time of receiving message to the portal (in local time)

    • string MessBody

      message body

    • int MessType

      type of message
      1 - sms
      2 - message from the application

    • long MessId

      message ID

    • float Ew

      latitude

    • float El

      longitude

    • string MessOrigTime

      only in messages from vehicle, contain original time sent message at the time of the terminal

    • float EwSend

      latitude sent

    • float ElSend

      longitude sent

    • string PlaceSend

      location sent

    • string DeliverTime

      vehicle message delivery time to portal - local time / terminal time

    • string ReadTime

      time of reading message / time from vehicle is in local time / time from WD Fleet or terminal is in GMT

    • string DeleteTime

      time of deleting message / vehicle - local time / terminal time

    • string UpdateTime

      time of last status update e.g. read - unread, received - deleted in local time

    • int Type

      type of message
      1 - standard message
      2 - alarm message

    • int SubType

      alarm type
      0 - undefined
      1 - reaching the corridor
      2 - leaving the corridor
      5 - unit not communicating
      7 - vehicle fails to arrive on time at scheduled stop; vehicle probably will not arrive on time at scheduled stop
      8 - stopped in the wrong parking lot
      9 - reaching location; leaving location
      10 - alarm/alarm from unit
      11 - temperature exceeded
      12 - temperature not reached
      14 - vehicle standing for longer than
      15 - ride outside of working hours
      16 - unknown card
      17 - tire condition
      18 - vehicle has started
      19 - vehicle has switched off engine
      20 - vehicle has been towed
      21 - error from OBD; event from accelerator
      22 - speed exceeded

    • int FileId

      file identification

    • string FileName

      file name

    • int FileSize

      file size

    • int IsWDFleetInfo

      0 .. message is not for WD Fleet
      1 .. message is for WD Fleet

Examples

API version 2.0

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

Test

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

company code
user name
password
vehicle ID
date from
date to
type of message (1 - incoming, 2 - sent, 0 - all, 10 - all filter by orig_datetime, 11 - incoming filter by orig_datetime ) - "incoming" = to the portal, "sent" = from the portal

* Required field