POST api/KWatch/GetMutePeriod

K1Watch Get silent time [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. is success

TimerResult
NameDescriptionTypeAdditional information
Items

data

Collection of K1Timer

None.

State

status code

integer

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

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