BootView WebApi

<back to all web services

GetDeviceMessages

The following routes are available for this service:
GET/spytec/device/messagesGet list of device messages.
GetDeviceMessages 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.
SpytecMessagesResult Parameters:
NameParameterData TypeRequiredDescription
ResultformMessagesResultNo
SpytecBaseResult Parameters:
NameParameterData TypeRequiredDescription
SuccessformboolNo
MessageformstringNo
MessagesResult Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<SpytecMessages>No
SpytecMessages Parameters:
NameParameterData TypeRequiredDescription
TypeformstringNo
GpsUTCTimeformstringNo
ImeiformstringNo
LatitudeformdoubleNo
LongitudeformdoubleNo
OdoMileageformintNo
SendTimeformDateTimeNo
Message_idformstringNo
SpeedformdoubleNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

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

{"result":{"items":[{"type":"String","gpsUTCTime":"String","imei":"String","latitude":0,"longitude":0,"odoMileage":0,"sendTime":"\/Date(-62135596800000-0000)\/","message_id":"String","speed":0}]},"success":false,"message":"String"}