Monitor Report Server

<back to all web services

DeviceSnapshotDataRequest

The following routes are available for this service:
GET,POST/device/snapshotdata
DeviceSnapshotDataRequest Parameters:
NameParameterData TypeRequiredDescription
DeviceIdbodyintNo
FrombodyDateTimeNo
TobodyDateTimeNo
TimeZoneIdbodystringNo
ApiRequest Parameters:
NameParameterData TypeRequiredDescription
ApiKeyformstringNo

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

HTTP + CSV

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

POST /device/snapshotdata HTTP/1.1 
Host: api.v3.monitorsystem.ru 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"DeviceId":0,"From":"\/Date(-62135596800000-0000)\/","To":"\/Date(-62135596800000-0000)\/","TimeZoneId":"String","ApiKey":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

[{"Analog":{"AIN1":0,"AIN2":0,"AIN3":0,"AIN4":0,"AIN5":0,"AIN6":0,"AIN7":0,"AIN8":0,"DeviceId":0,"ServerTime":"\/Date(-62135596800000-0000)\/","DeviceTime":"\/Date(-62135596800000-0000)\/","Valid":false},"Auxiliary":{"AUX1":0,"AUX2":0,"AUX3":0,"AUX4":0,"DeviceId":0,"ServerTime":"\/Date(-62135596800000-0000)\/","DeviceTime":"\/Date(-62135596800000-0000)\/","Valid":false},"Gps":{"Lat":0,"Lon":0,"Height":0,"Mileage":0,"Speed":0,"Direction":0,"Satellites":0,"DeviceId":0,"ServerTime":"\/Date(-62135596800000-0000)\/","DeviceTime":"\/Date(-62135596800000-0000)\/","Valid":false},"Counter":{"CNT1":0,"CNT2":0,"CNT3":0,"CNT4":0,"CNT5":0,"CNT6":0,"CNT7":0,"CNT8":0,"DeviceId":0,"ServerTime":"\/Date(-62135596800000-0000)\/","DeviceTime":"\/Date(-62135596800000-0000)\/","Valid":false},"Data":{"DATA1":0,"DATA2":0,"DATA3":0,"DATA4":0,"DATA5":0,"DATA6":0,"DATA7":0,"DATA8":0,"DATA9":0,"DATA10":0,"DATA11":0,"DATA12":0,"DATA13":0,"DATA14":0,"DATA15":0,"DATA16":0,"DATA17":0,"DATA18":0,"DATA19":0,"DATA20":0,"DATA21":0,"DATA22":0,"DATA23":0,"DATA24":0,"DeviceId":0,"ServerTime":"\/Date(-62135596800000-0000)\/","DeviceTime":"\/Date(-62135596800000-0000)\/","Valid":false},"Digital":{"DIN":0,"DeviceId":0,"ServerTime":"\/Date(-62135596800000-0000)\/","DeviceTime":"\/Date(-62135596800000-0000)\/","Valid":false},"DeviceId":0,"ServerTime":"\/Date(-62135596800000-0000)\/","DeviceTime":"\/Date(-62135596800000-0000)\/","Valid":false}]