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 .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.

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

<DeviceSnapshotDataRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.WebApi.Client.Monitoring">
  <ApiKey xmlns="http://schemas.datacontract.org/2004/07/TS.WebApi.Client">String</ApiKey>
  <DeviceId>0</DeviceId>
  <From>0001-01-01T00:00:00</From>
  <TimeZoneId>String</TimeZoneId>
  <To>0001-01-01T00:00:00</To>
</DeviceSnapshotDataRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ArrayOfSnapshot xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.Common.Devices.Data">
  <Snapshot>
    <DeviceId>0</DeviceId>
    <DeviceTime>0001-01-01T00:00:00</DeviceTime>
    <ServerTime>0001-01-01T00:00:00</ServerTime>
    <Valid>false</Valid>
    <Analog>
      <DeviceId>0</DeviceId>
      <DeviceTime>0001-01-01T00:00:00</DeviceTime>
      <ServerTime>0001-01-01T00:00:00</ServerTime>
      <Valid>false</Valid>
      <AIN1>0</AIN1>
      <AIN2>0</AIN2>
      <AIN3>0</AIN3>
      <AIN4>0</AIN4>
      <AIN5>0</AIN5>
      <AIN6>0</AIN6>
      <AIN7>0</AIN7>
      <AIN8>0</AIN8>
    </Analog>
    <Auxiliary>
      <DeviceId>0</DeviceId>
      <DeviceTime>0001-01-01T00:00:00</DeviceTime>
      <ServerTime>0001-01-01T00:00:00</ServerTime>
      <Valid>false</Valid>
      <AUX1>0</AUX1>
      <AUX2>0</AUX2>
      <AUX3>0</AUX3>
      <AUX4>0</AUX4>
    </Auxiliary>
    <Counter>
      <DeviceId>0</DeviceId>
      <DeviceTime>0001-01-01T00:00:00</DeviceTime>
      <ServerTime>0001-01-01T00:00:00</ServerTime>
      <Valid>false</Valid>
      <CNT1>0</CNT1>
      <CNT2>0</CNT2>
      <CNT3>0</CNT3>
      <CNT4>0</CNT4>
      <CNT5>0</CNT5>
      <CNT6>0</CNT6>
      <CNT7>0</CNT7>
      <CNT8>0</CNT8>
    </Counter>
    <Data>
      <DeviceId>0</DeviceId>
      <DeviceTime>0001-01-01T00:00:00</DeviceTime>
      <ServerTime>0001-01-01T00:00:00</ServerTime>
      <Valid>false</Valid>
      <DATA1>0</DATA1>
      <DATA10>0</DATA10>
      <DATA11>0</DATA11>
      <DATA12>0</DATA12>
      <DATA13>0</DATA13>
      <DATA14>0</DATA14>
      <DATA15>0</DATA15>
      <DATA16>0</DATA16>
      <DATA17>0</DATA17>
      <DATA18>0</DATA18>
      <DATA19>0</DATA19>
      <DATA2>0</DATA2>
      <DATA20>0</DATA20>
      <DATA21>0</DATA21>
      <DATA22>0</DATA22>
      <DATA23>0</DATA23>
      <DATA24>0</DATA24>
      <DATA3>0</DATA3>
      <DATA4>0</DATA4>
      <DATA5>0</DATA5>
      <DATA6>0</DATA6>
      <DATA7>0</DATA7>
      <DATA8>0</DATA8>
      <DATA9>0</DATA9>
    </Data>
    <Digital>
      <DeviceId>0</DeviceId>
      <DeviceTime>0001-01-01T00:00:00</DeviceTime>
      <ServerTime>0001-01-01T00:00:00</ServerTime>
      <Valid>false</Valid>
      <DIN>0</DIN>
    </Digital>
    <Gps>
      <DeviceId>0</DeviceId>
      <DeviceTime>0001-01-01T00:00:00</DeviceTime>
      <ServerTime>0001-01-01T00:00:00</ServerTime>
      <Valid>false</Valid>
      <Direction>0</Direction>
      <Height>0</Height>
      <Lat>0</Lat>
      <Lon>0</Lon>
      <Mileage>0</Mileage>
      <Satellites>0</Satellites>
      <Speed>0</Speed>
    </Gps>
  </Snapshot>
</ArrayOfSnapshot>