POST api/GuarderPosition/GuardersPosition

Obtain the guardian location information [watch]

Request Information

Body Parameters

GuardersPositionModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

None.

MapType

map style

string

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,
  "MapType": "sample string 2",
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<GuardersPositionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <Token>sample string 3</Token>
  <DeviceId>1</DeviceId>
  <MapType>sample string 2</MapType>
</GuardersPositionModel>

Response Information

Resource Description

Statestatus code:
0. Indicates success

GuardersPositionResult
NameDescriptionTypeAdditional information
Items

Focus on all the guardian location information of the device

Collection of GuarderPosition

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "Lat": 1.0,
      "Lng": 2.0,
      "UserId": 3,
      "LastUpdate": "sample string 4",
      "IsInChina": true,
      "Atavar": "sample string 6",
      "GroupName": "sample string 7",
      "UserName": "sample string 8"
    },
    {
      "Lat": 1.0,
      "Lng": 2.0,
      "UserId": 3,
      "LastUpdate": "sample string 4",
      "IsInChina": true,
      "Atavar": "sample string 6",
      "GroupName": "sample string 7",
      "UserName": "sample string 8"
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<GuardersPositionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items>
    <GuarderPosition>
      <Atavar>sample string 6</Atavar>
      <GroupName>sample string 7</GroupName>
      <IsInChina>true</IsInChina>
      <LastUpdate>sample string 4</LastUpdate>
      <Lat>1</Lat>
      <Lng>2</Lng>
      <UserId>3</UserId>
      <UserName>sample string 8</UserName>
    </GuarderPosition>
    <GuarderPosition>
      <Atavar>sample string 6</Atavar>
      <GroupName>sample string 7</GroupName>
      <IsInChina>true</IsInChina>
      <LastUpdate>sample string 4</LastUpdate>
      <Lat>1</Lat>
      <Lng>2</Lng>
      <UserId>3</UserId>
      <UserName>sample string 8</UserName>
    </GuarderPosition>
  </Items>
</GuardersPositionResult>