GET api/alarm/get_alarm_message

Get alarm list by device ID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
AccessToken

Token

string

None.

Imei

IMEI

string

None.

MapType

Google

string

None.

BeginTime

Begin Time(UTC)

string

None.

EndTime

End Time(UTC)

string

None.

Response Information

Resource Description

Return the alarm list

AlarmMessageResult
NameDescriptionTypeAdditional information
Result

Result

Collection of AlarmMessageOutputDto

None.

Code

Status Code

integer

None.

Message

Error Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": [
    {
      "Imei": "sample string 1",
      "ExceptionID": "sample string 2",
      "AlarmType": "sample string 3",
      "AlarmName": "sample string 4",
      "AlarmTime": "sample string 5",
      "Lat": 6.1,
      "Lng": 7.1
    },
    {
      "Imei": "sample string 1",
      "ExceptionID": "sample string 2",
      "AlarmType": "sample string 3",
      "AlarmName": "sample string 4",
      "AlarmTime": "sample string 5",
      "Lat": 6.1,
      "Lng": 7.1
    }
  ],
  "Code": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<AlarmMessageResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.OpenApi.Models.ResponseModels">
  <Code>1</Code>
  <Message>sample string 2</Message>
  <Result>
    <AlarmMessageOutputDto>
      <AlarmName>sample string 4</AlarmName>
      <AlarmTime>sample string 5</AlarmTime>
      <AlarmType>sample string 3</AlarmType>
      <ExceptionID>sample string 2</ExceptionID>
      <Imei>sample string 1</Imei>
      <Lat>6.1</Lat>
      <Lng>7.1</Lng>
    </AlarmMessageOutputDto>
    <AlarmMessageOutputDto>
      <AlarmName>sample string 4</AlarmName>
      <AlarmTime>sample string 5</AlarmTime>
      <AlarmType>sample string 3</AlarmType>
      <ExceptionID>sample string 2</ExceptionID>
      <Imei>sample string 1</Imei>
      <Lat>6.1</Lat>
      <Lng>7.1</Lng>
    </AlarmMessageOutputDto>
  </Result>
</AlarmMessageResult>