POST api/Device/PositionHeartSOS

Latest information on location, heart rate, SOS message, (SOS or enclosure)

Request Information

Body Parameters

PositionHeartSOSModel
NameDescriptionTypeAdditional information
MapType

map style

string

None.

DeviceId

device id

integer

None.

UserId

user 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:
{
  "MapType": "sample string 1",
  "DeviceId": 2,
  "UserId": 3,
  "Token": "sample string 4",
  "Language": "sample string 5",
  "AppId": "sample string 6"
}

application/xml, text/xml

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

Response Information

Resource Description

State status codeillustrate:
0. success
1100. device does not exist

PositionHeartSOSResult
NameDescriptionTypeAdditional information
Message

Message illustrate

string

None.

LastSOSException

Latest help information

SOSException

None.

LastHeatBeat

Latest heart rate information

Heatbeat

None.

LastPosition

Latest location information

Position

None.

LastNotify

Last inform

Notify

None.

LastSOSOverZone

Last SOS or a fence alarm

SOSOverZone

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "LastSOSException": {
    "LastTime": "sample string 1",
    "OLat": 2.0,
    "OLng": 3.0,
    "Latitude": 4.0,
    "Longitude": 5.0
  },
  "LastHeatBeat": {
    "LastTime": "sample string 1",
    "HeartBate": 2.0
  },
  "LastPosition": {
    "OLat": 1.0,
    "OLng": 2.0,
    "Latitude": 3.0,
    "Longitude": 4.0,
    "LastCommunication": "sample string 5",
    "DeviceUtcTime": "sample string 6",
    "PositionType": 7
  },
  "LastNotify": {
    "LastTime": "sample string 1",
    "Content": "sample string 2",
    "Title": "sample string 3"
  },
  "LastSOSOverZone": {
    "LastTime": "sample string 1",
    "Content": "sample string 2"
  },
  "State": 2
}

application/xml, text/xml

Sample:
<PositionHeartSOSResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <LastHeatBeat>
    <HeartBate>2</HeartBate>
    <LastTime>sample string 1</LastTime>
  </LastHeatBeat>
  <LastNotify>
    <Content>sample string 2</Content>
    <LastTime>sample string 1</LastTime>
    <Title>sample string 3</Title>
  </LastNotify>
  <LastPosition>
    <DeviceUtcTime>sample string 6</DeviceUtcTime>
    <LastCommunication>sample string 5</LastCommunication>
    <Latitude>3</Latitude>
    <Longitude>4</Longitude>
    <OLat>1</OLat>
    <OLng>2</OLng>
    <PositionType>7</PositionType>
  </LastPosition>
  <LastSOSException>
    <LastTime>sample string 1</LastTime>
    <Latitude>4</Latitude>
    <Longitude>5</Longitude>
    <OLat>2</OLat>
    <OLng>3</OLng>
  </LastSOSException>
  <LastSOSOverZone>
    <Content>sample string 2</Content>
    <LastTime>sample string 1</LastTime>
  </LastSOSOverZone>
  <Message>sample string 1</Message>
</PositionHeartSOSResult>