GET | /spytec/device/messages | Get list of device messages. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Imei | query | string | Yes | The Imei of the GPS device. |
StartDate | query | DateTime | Yes | Start date to get the message list. |
EndDate | query | DateTime | Yes | End date to get the message list. |
Limit | query | int | No | Maximum number in one page of results. |
NextToken | query | string | No | Pagination token received from previous query. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Result | form | MessagesResult | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Success | form | bool | No | |
Message | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Items | form | List<SpytecMessages> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Type | form | string | No | |
GpsUTCTime | form | string | No | |
Imei | form | string | No | |
Latitude | form | double | No | |
Longitude | form | double | No | |
OdoMileage | form | int | No | |
SendTime | form | DateTime | No | |
Message_id | form | string | No | |
Speed | form | double | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { result: { items: [ { type: String, gpsUTCTime: String, imei: String, latitude: 0, longitude: 0, odoMileage: 0, sendTime: 0001-01-01, message_id: String, speed: 0 } ] }, success: False, message: String }