GET | /spytec/device/status | Get the spytec device status based on the imei. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Imei | query | string | Yes | The Imei of the GPS device. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Result | form | DeviceStatusResult | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Success | form | bool | No | |
Message | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
BatteryAlertInAlarm | form | int | No | |
GpsAccuracy | form | int | No | |
TripDurationInAlarm | form | string | No | |
CellId | form | string | No | |
MessageId | form | string | No | |
ReportType | form | string | No | |
Azimuth | form | string | No | |
OdoMileage | form | string | No | |
Speed | form | string | No | |
Altitude | form | double | No | |
Latitude | form | double | No | |
Longitude | form | double | No | |
TripGenerator | form | DateTime | No | |
ReportId | form | string | No | |
GpsUTCTime | form | string | No | |
BatteryPercentage | form | string | No | |
Created | form | DateTime | No | |
SendTime | form | DateTime | No | |
Address | form | string | No | |
ClientId | form | int | No | |
TripDistanceInAlarm | form | int | No | |
TripId | form | int | No | |
Imei | form | string | No | |
SpeedAlertInAlarm | form | string | No | |
TripStopDurationInAlarm | form | string | No | |
Mnc | form | string | No | |
Mcc | form | string | No | |
Lac | form | string | No | |
ProtocolVersion | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /spytec/device/status HTTP/1.1 Host: api.paylock.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"result":{"batteryAlertInAlarm":0,"gpsAccuracy":0,"tripDurationInAlarm":"String","cellId":"String","messageId":"String","reportType":"String","azimuth":"String","odoMileage":"String","speed":"String","altitude":0,"latitude":0,"longitude":0,"tripGenerator":"\/Date(-62135596800000-0000)\/","reportId":"String","gpsUTCTime":"String","batteryPercentage":"String","created":"\/Date(-62135596800000-0000)\/","sendTime":"\/Date(-62135596800000-0000)\/","address":"String","clientId":0,"tripDistanceInAlarm":0,"tripId":0,"imei":"String","speedAlertInAlarm":"String","tripStopDurationInAlarm":"String","mnc":"String","mcc":"String","lac":"String","protocolVersion":"String"},"success":false,"message":"String"}