POST api/Command/ContactList

Contact list [specific device specific interface HW]

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

ContactResult
NameDescriptionTypeAdditional information
Items

Collection of K1Contact

None.

State

status code

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>