POST api/Health/GetHealth

The health data of a certain period of time, including the heart rate of blood pressure, etc. [watch]

Request Information

Body Parameters

GetHealthModel
NameDescriptionTypeAdditional information
StartTime

start time

date

None.

EndTime

ending time

date

None.

DeviceId

device id

integer

None.

TimeOffset

time 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:
{
  "StartTime": "2018-10-19T15:34:21.311003+08:00",
  "EndTime": "2018-10-19T15:34:21.311003+08:00",
  "DeviceId": 3,
  "TimeOffset": 4.1,
  "Token": "sample string 5",
  "Language": "sample string 6",
  "AppId": "sample string 7"
}

application/xml, text/xml

Sample:
<GetHealthModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 7</AppId>
  <Language>sample string 6</Language>
  <Token>sample string 5</Token>
  <DeviceId>3</DeviceId>
  <EndTime>2018-10-19T15:34:21.311003+08:00</EndTime>
  <StartTime>2018-10-19T15:34:21.311003+08:00</StartTime>
  <TimeOffset>4.1</TimeOffset>
</GetHealthModel>

Response Information

Resource Description

Statestatus code:
0. Indicates success
1100. indicates device does not exist

GetHealthResult
NameDescriptionTypeAdditional information
BloodPressureItems

Blood pressure collection

Collection of BloodPressure

None.

BloodSugarItems

Blood sugar information

Collection of BloodSugarInfo

None.

Items

health information

Collection of HealthInfo

None.

HeartItems

health information heart rate

Collection of HealthInfo

None.

SleepItems

Sleep information

Collection of SleepInfo

None.

HealthRatio

Blood pressure data ratio

HealthRatio

None.

SleepRatio

Sleep data ratio

SleepRatio

None.

StepCount

Step number

integer

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "BloodPressureItems": [
    {
      "LastUpdate": "sample string 1",
      "Diastolic": 2.0,
      "Shrink": 3.0
    },
    {
      "LastUpdate": "sample string 1",
      "Diastolic": 2.0,
      "Shrink": 3.0
    }
  ],
  "BloodSugarItems": [
    {
      "IMEI": "sample string 1",
      "LastUpdate": "sample string 2",
      "BloodSugar": 3.0
    },
    {
      "IMEI": "sample string 1",
      "LastUpdate": "sample string 2",
      "BloodSugar": 3.0
    }
  ],
  "Items": [
    {
      "IMEI": "sample string 1",
      "Steps": 2,
      "Heartbeat": 3,
      "Diastolic": 4.0,
      "Shrink": 5.0,
      "LastUpdate": "sample string 6",
      "BloodSugar": 7.0,
      "Distance": 8.0,
      "Calorie": 9.0
    },
    {
      "IMEI": "sample string 1",
      "Steps": 2,
      "Heartbeat": 3,
      "Diastolic": 4.0,
      "Shrink": 5.0,
      "LastUpdate": "sample string 6",
      "BloodSugar": 7.0,
      "Distance": 8.0,
      "Calorie": 9.0
    }
  ],
  "HeartItems": [
    {
      "IMEI": "sample string 1",
      "Steps": 2,
      "Heartbeat": 3,
      "Diastolic": 4.0,
      "Shrink": 5.0,
      "LastUpdate": "sample string 6",
      "BloodSugar": 7.0,
      "Distance": 8.0,
      "Calorie": 9.0
    },
    {
      "IMEI": "sample string 1",
      "Steps": 2,
      "Heartbeat": 3,
      "Diastolic": 4.0,
      "Shrink": 5.0,
      "LastUpdate": "sample string 6",
      "BloodSugar": 7.0,
      "Distance": 8.0,
      "Calorie": 9.0
    }
  ],
  "SleepItems": [
    {
      "Imei": "sample string 1",
      "TotalSec": 2,
      "DeepSleepSec": 3,
      "LightSleepSec": 4,
      "Roll": 5,
      "Wake": 6,
      "LastUpdated": "2018-10-19T15:34:21.3197924+08:00",
      "StartTime": "2018-10-19T15:34:21.3197924+08:00",
      "EndTime": "2018-10-19T15:34:21.3197924+08:00"
    },
    {
      "Imei": "sample string 1",
      "TotalSec": 2,
      "DeepSleepSec": 3,
      "LightSleepSec": 4,
      "Roll": 5,
      "Wake": 6,
      "LastUpdated": "2018-10-19T15:34:21.3197924+08:00",
      "StartTime": "2018-10-19T15:34:21.3197924+08:00",
      "EndTime": "2018-10-19T15:34:21.3197924+08:00"
    }
  ],
  "HealthRatio": {
    "Total": 1,
    "Normal": 2,
    "Low": 3,
    "High": 4
  },
  "SleepRatio": {
    "TotalSec": 1,
    "DeepSleepSec": 2,
    "LightSleepSec": 3,
    "Roll": 4,
    "Wake": 5,
    "Quality": 6,
    "StartTime": "sample string 7",
    "EndTime": "sample string 8"
  },
  "StepCount": 1,
  "State": 2
}

application/xml, text/xml

Sample:
<GetHealthResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <BloodPressureItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
    <d2p1:BloodPressure>
      <d2p1:Diastolic>2</d2p1:Diastolic>
      <d2p1:LastUpdate>sample string 1</d2p1:LastUpdate>
      <d2p1:Shrink>3</d2p1:Shrink>
    </d2p1:BloodPressure>
    <d2p1:BloodPressure>
      <d2p1:Diastolic>2</d2p1:Diastolic>
      <d2p1:LastUpdate>sample string 1</d2p1:LastUpdate>
      <d2p1:Shrink>3</d2p1:Shrink>
    </d2p1:BloodPressure>
  </BloodPressureItems>
  <BloodSugarItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
    <d2p1:BloodSugarInfo>
      <d2p1:BloodSugar>3</d2p1:BloodSugar>
      <d2p1:IMEI>sample string 1</d2p1:IMEI>
      <d2p1:LastUpdate>sample string 2</d2p1:LastUpdate>
    </d2p1:BloodSugarInfo>
    <d2p1:BloodSugarInfo>
      <d2p1:BloodSugar>3</d2p1:BloodSugar>
      <d2p1:IMEI>sample string 1</d2p1:IMEI>
      <d2p1:LastUpdate>sample string 2</d2p1:LastUpdate>
    </d2p1:BloodSugarInfo>
  </BloodSugarItems>
  <HealthRatio xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:High>4</d2p1:High>
    <d2p1:Low>3</d2p1:Low>
    <d2p1:Normal>2</d2p1:Normal>
    <d2p1:Total>1</d2p1:Total>
  </HealthRatio>
  <HeartItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
    <d2p1:HealthInfo>
      <d2p1:BloodSugar>7</d2p1:BloodSugar>
      <d2p1:Calorie>9</d2p1:Calorie>
      <d2p1:Diastolic>4</d2p1:Diastolic>
      <d2p1:Distance>8</d2p1:Distance>
      <d2p1:Heartbeat>3</d2p1:Heartbeat>
      <d2p1:IMEI>sample string 1</d2p1:IMEI>
      <d2p1:LastUpdate>sample string 6</d2p1:LastUpdate>
      <d2p1:Shrink>5</d2p1:Shrink>
      <d2p1:Steps>2</d2p1:Steps>
    </d2p1:HealthInfo>
    <d2p1:HealthInfo>
      <d2p1:BloodSugar>7</d2p1:BloodSugar>
      <d2p1:Calorie>9</d2p1:Calorie>
      <d2p1:Diastolic>4</d2p1:Diastolic>
      <d2p1:Distance>8</d2p1:Distance>
      <d2p1:Heartbeat>3</d2p1:Heartbeat>
      <d2p1:IMEI>sample string 1</d2p1:IMEI>
      <d2p1:LastUpdate>sample string 6</d2p1:LastUpdate>
      <d2p1:Shrink>5</d2p1:Shrink>
      <d2p1:Steps>2</d2p1:Steps>
    </d2p1:HealthInfo>
  </HeartItems>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
    <d2p1:HealthInfo>
      <d2p1:BloodSugar>7</d2p1:BloodSugar>
      <d2p1:Calorie>9</d2p1:Calorie>
      <d2p1:Diastolic>4</d2p1:Diastolic>
      <d2p1:Distance>8</d2p1:Distance>
      <d2p1:Heartbeat>3</d2p1:Heartbeat>
      <d2p1:IMEI>sample string 1</d2p1:IMEI>
      <d2p1:LastUpdate>sample string 6</d2p1:LastUpdate>
      <d2p1:Shrink>5</d2p1:Shrink>
      <d2p1:Steps>2</d2p1:Steps>
    </d2p1:HealthInfo>
    <d2p1:HealthInfo>
      <d2p1:BloodSugar>7</d2p1:BloodSugar>
      <d2p1:Calorie>9</d2p1:Calorie>
      <d2p1:Diastolic>4</d2p1:Diastolic>
      <d2p1:Distance>8</d2p1:Distance>
      <d2p1:Heartbeat>3</d2p1:Heartbeat>
      <d2p1:IMEI>sample string 1</d2p1:IMEI>
      <d2p1:LastUpdate>sample string 6</d2p1:LastUpdate>
      <d2p1:Shrink>5</d2p1:Shrink>
      <d2p1:Steps>2</d2p1:Steps>
    </d2p1:HealthInfo>
  </Items>
  <SleepItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
    <d2p1:SleepInfo>
      <d2p1:DeepSleepSec>3</d2p1:DeepSleepSec>
      <d2p1:EndTime>2018-10-19T15:34:21.3197924+08:00</d2p1:EndTime>
      <d2p1:Imei>sample string 1</d2p1:Imei>
      <d2p1:LastUpdated>2018-10-19T15:34:21.3197924+08:00</d2p1:LastUpdated>
      <d2p1:LightSleepSec>4</d2p1:LightSleepSec>
      <d2p1:Roll>5</d2p1:Roll>
      <d2p1:StartTime>2018-10-19T15:34:21.3197924+08:00</d2p1:StartTime>
      <d2p1:TotalSec>2</d2p1:TotalSec>
      <d2p1:Wake>6</d2p1:Wake>
    </d2p1:SleepInfo>
    <d2p1:SleepInfo>
      <d2p1:DeepSleepSec>3</d2p1:DeepSleepSec>
      <d2p1:EndTime>2018-10-19T15:34:21.3197924+08:00</d2p1:EndTime>
      <d2p1:Imei>sample string 1</d2p1:Imei>
      <d2p1:LastUpdated>2018-10-19T15:34:21.3197924+08:00</d2p1:LastUpdated>
      <d2p1:LightSleepSec>4</d2p1:LightSleepSec>
      <d2p1:Roll>5</d2p1:Roll>
      <d2p1:StartTime>2018-10-19T15:34:21.3197924+08:00</d2p1:StartTime>
      <d2p1:TotalSec>2</d2p1:TotalSec>
      <d2p1:Wake>6</d2p1:Wake>
    </d2p1:SleepInfo>
  </SleepItems>
  <SleepRatio xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:DeepSleepSec>2</d2p1:DeepSleepSec>
    <d2p1:EndTime>sample string 8</d2p1:EndTime>
    <d2p1:LightSleepSec>3</d2p1:LightSleepSec>
    <d2p1:Quality>6</d2p1:Quality>
    <d2p1:Roll>4</d2p1:Roll>
    <d2p1:StartTime>sample string 7</d2p1:StartTime>
    <d2p1:TotalSec>1</d2p1:TotalSec>
    <d2p1:Wake>5</d2p1:Wake>
  </SleepRatio>
  <StepCount>1</StepCount>
</GetHealthResult>