POST api/Device/HealthInfo

Information about the steps, heart rate, etc. Of personal devices

Request Information

Body Parameters

DeviceIdModel
NameDescriptionTypeAdditional information
DeviceId

integer

None.

TimeOffset

cell phonetime zone

decimal number

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

application/xml, text/xml

Sample:
<DeviceIdModel 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>
  <TimeOffset>2.1</TimeOffset>
</DeviceIdModel>

Response Information

Resource Description

PersonInfoResult
NameDescriptionTypeAdditional information
DeviceId

integer

None.

SerialNumber

string

None.

Step

step number

integer

None.

Distance

distance

decimal number

None.

Energy

calories

decimal number

None.

HeartRate

Heart rate

decimal number

None.

BloodMax

maximum value of blood pressure

decimal number

None.

BloodMin

Lowest value blood pressure

decimal number

None.

SleepAll

sleeping

decimal number

None.

DeepSleep

Deep sleeping

decimal number

None.

LightSleep

Light Sleep

decimal number

None.

Note

Pod O'Clock

string

None.

LastUpdateTime

Data updating time

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "DeviceId": 1,
  "SerialNumber": "sample string 2",
  "Step": 3,
  "Distance": 4.0,
  "Energy": 5.0,
  "HeartRate": 6.0,
  "BloodMax": 7.0,
  "BloodMin": 8.0,
  "SleepAll": 9.1,
  "DeepSleep": 10.1,
  "LightSleep": 11.1,
  "Note": "sample string 12",
  "LastUpdateTime": "sample string 13",
  "State": 14
}

application/xml, text/xml

Sample:
<PersonInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>14</State>
  <BloodMax>7</BloodMax>
  <BloodMin>8</BloodMin>
  <DeepSleep>10.1</DeepSleep>
  <DeviceId>1</DeviceId>
  <Distance>4</Distance>
  <Energy>5</Energy>
  <HeartRate>6</HeartRate>
  <LastUpdateTime>sample string 13</LastUpdateTime>
  <LightSleep>11.1</LightSleep>
  <Note>sample string 12</Note>
  <SerialNumber>sample string 2</SerialNumber>
  <SleepAll>9.1</SleepAll>
  <Step>3</Step>
</PersonInfoResult>