POST api/Command/ContactList

联系列表 [特定设备专用接口HW]

Request Information

Body Parameters

TimerModel
NameDescriptionTypeAdditional 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

ContactResult
NameDescriptionTypeAdditional 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>