POST api/Health/GetHealthByType

Get heart rate or blood pressure data

Request Information

Body Parameters

HealthByTypeModel
NameDescriptionTypeAdditional information
Imei

IMEI

string

None.

Start

starting time UTC

date

None.

End

ending time UTC

date

None.

TypeId

query type 1:heartrate 2:blood pressure

integer

None.

Date

date

None.

Top

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:
{
  "Imei": "sample string 1",
  "Start": "2018-10-19T15:40:49.1755058+08:00",
  "End": "2018-10-19T15:40:49.1755058+08:00",
  "TypeId": 4,
  "Date": "2018-10-19T15:40:49.1764824+08:00",
  "Top": 6,
  "TimeOffset": 7.1,
  "Token": "sample string 8",
  "Language": "sample string 9",
  "AppId": "sample string 10"
}

application/xml, text/xml

Sample:
<HealthByTypeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 10</AppId>
  <Language>sample string 9</Language>
  <Token>sample string 8</Token>
  <Date>2018-10-19T15:40:49.1764824+08:00</Date>
  <End>2018-10-19T15:40:49.1755058+08:00</End>
  <Imei>sample string 1</Imei>
  <Start>2018-10-19T15:40:49.1755058+08:00</Start>
  <TimeOffset>7.1</TimeOffset>
  <Top>6</Top>
  <TypeId>4</TypeId>
</HealthByTypeModel>

Response Information

Resource Description

Statestatus code:
0. Indicates success

HealthByTypeResult
NameDescriptionTypeAdditional information
Items

data

Collection of HealthInfo

None.

HeartRate

string

None.

Blood

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "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
    }
  ],
  "HeartRate": "sample string 1",
  "Blood": "sample string 2",
  "State": 3
}

application/xml, text/xml

Sample:
<HealthByTypeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>3</State>
  <Blood>sample string 2</Blood>
  <HeartRate>sample string 1</HeartRate>
  <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>
</HealthByTypeResult>