POST api/KWatch/ContactList
K1Watch 联系人 [专用接口]
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 K1Contact |
None. |
|
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Items": [
{
"ContactId": 1,
"Imei": "sample string 2",
"PhoneNum": "sample string 3",
"Name": "sample string 4",
"Type": 5,
"IsSos": true,
"Action": 7,
"Created": 8,
"Updated": 9
},
{
"ContactId": 1,
"Imei": "sample string 2",
"PhoneNum": "sample string 3",
"Name": "sample string 4",
"Type": 5,
"IsSos": true,
"Action": 7,
"Created": 8,
"Updated": 9
}
],
"State": 1
}
application/xml, text/xml
Sample:
<ContactResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
<State>1</State>
<Items>
<K1Contact>
<Action>7</Action>
<ContactId>1</ContactId>
<Created>8</Created>
<Imei>sample string 2</Imei>
<IsSos>true</IsSos>
<Name>sample string 4</Name>
<PhoneNum>sample string 3</PhoneNum>
<Type>5</Type>
<Updated>9</Updated>
</K1Contact>
<K1Contact>
<Action>7</Action>
<ContactId>1</ContactId>
<Created>8</Created>
<Imei>sample string 2</Imei>
<IsSos>true</IsSos>
<Name>sample string 4</Name>
<PhoneNum>sample string 3</PhoneNum>
<Type>5</Type>
<Updated>9</Updated>
</K1Contact>
</Items>
</ContactResult>