POST api/KWatch/GetAlarm

Get the alarm clock [special interface]

Request Information

Body Parameters

TimerModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<TimerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 4</AppId>
  <Language>sample string 3</Language>
  <Token>sample string 2</Token>
  <DeviceId>1</DeviceId>
</TimerModel>

Response Information

Resource Description

Statestatus code:
0. Indicates success
100. stands no data
1100. Indicates device does not exist

AlarmTimerResult
NameDescriptionTypeAdditional information
Items

alarm clock item

Collection of AlarmTimer

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "ObjId": 1,
      "Imei": "sample string 2",
      "AlarmTime": "sample string 3",
      "Cycle": "sample string 4",
      "Label": "sample string 5",
      "IsActive": true,
      "Updated": 7,
      "ObjType": 8
    },
    {
      "ObjId": 1,
      "Imei": "sample string 2",
      "AlarmTime": "sample string 3",
      "Cycle": "sample string 4",
      "Label": "sample string 5",
      "IsActive": true,
      "Updated": 7,
      "ObjType": 8
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<AlarmTimerResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items>
    <AlarmTimer>
      <AlarmTime>sample string 3</AlarmTime>
      <Cycle>sample string 4</Cycle>
      <Imei>sample string 2</Imei>
      <IsActive>true</IsActive>
      <Label>sample string 5</Label>
      <ObjId>1</ObjId>
      <ObjType>8</ObjType>
      <Updated>7</Updated>
    </AlarmTimer>
    <AlarmTimer>
      <AlarmTime>sample string 3</AlarmTime>
      <Cycle>sample string 4</Cycle>
      <Imei>sample string 2</Imei>
      <IsActive>true</IsActive>
      <Label>sample string 5</Label>
      <ObjId>1</ObjId>
      <ObjType>8</ObjType>
      <Updated>7</Updated>
    </AlarmTimer>
  </Items>
</AlarmTimerResult>