BootView WebApi

<back to all web services

GetDeviceAlerts

The following routes are available for this service:
GET/spytec/device/alertsGet list of device alerts.
GetDeviceAlerts Parameters:
NameParameterData TypeRequiredDescription
ImeiquerystringYesThe Imei of the GPS device.
StartDatequeryDateTimeYesStart date to get the message list.
EndDatequeryDateTimeYesEnd date to get the message list.
LimitqueryintNoMaximum number in one page of results.
NextTokenquerystringNoPagination token received from previous query.
TypesquerystringYesAvailable alert types: Speeding, SOS, LowBattery, GeofenceEntry, GeofenceExit, Movement, TripExceedsDistance, TripExceedsDuration, TripStarted, TripFinished, StopExceedsDuration, Tow, IgnitionOn, IgnitionOff, StartedCharging, StoppedCharging, PluggedExternalPowerSource, UnpluggedExternalPowerSource.
SpytecAlertResult Parameters:
NameParameterData TypeRequiredDescription
ResultformAlertResultNo
SpytecBaseResult Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
MessageformstringNo
AlertResult Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<SpytecAlert>No
SpytecAlert Parameters:
NameParameterData TypeRequiredDescription
alertTypeformstringNo
imeiformstringNo
createdformDateTimeNo
sendTimeformDateTimeNo
userIdformstringNo
coordinatesformCoordinateNo
addressformstringNo
clientIdformdoubleNo
alertIdformdoubleNo
valueformstringNo
isBufferformboolNo
isNotificationformboolNo
Coordinate Parameters:
NameParameterData TypeRequiredDescription
latitudeformdoubleNo
longitudeformdoubleNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /spytec/device/alerts HTTP/1.1 
Host: api.paylock.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SpytecAlertResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BootView.WebApi.ServiceModel">
  <Message>String</Message>
  <Success>false</Success>
  <Result>
    <Items>
      <SpytecAlert>
        <address>String</address>
        <alertId>0</alertId>
        <alertType>String</alertType>
        <clientId>0</clientId>
        <coordinates>
          <latitude>0</latitude>
          <longitude>0</longitude>
        </coordinates>
        <created>0001-01-01T00:00:00</created>
        <imei>String</imei>
        <isBuffer>false</isBuffer>
        <isNotification>false</isNotification>
        <sendTime>0001-01-01T00:00:00</sendTime>
        <userId>String</userId>
        <value>String</value>
      </SpytecAlert>
    </Items>
  </Result>
</SpytecAlertResult>