POST api/KWatch/GetAlarm
获取闹钟 [专用接口]
Request Information
Body Parameters
TimerModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceId |
设备 id |
integer |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
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
State状态码:
0. 表示成功
100. 表示无数据
1100. 表示设备不存在
| Name | Description | Type | Additional information |
|---|---|---|---|
| Items |
闹钟项 |
Collection of AlarmTimer |
None. |
| State |
状态码 |
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>