POST api/Health/GetHealth
查询某时间段的健康数据 包括心跳 血压 体温 步数等 [手表]
Request Information
Body Parameters
GetHealthModel| Name | Description | Type | Additional information |
|---|---|---|---|
| StartTime |
开始时间 |
date |
None. |
| EndTime |
结束时间 |
date |
None. |
| DeviceId |
设备 id |
integer |
None. |
| TimeOffset |
时区 |
decimal number |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"StartTime": "2025-12-12T05:28:05.0328419+08:00",
"EndTime": "2025-12-12T05:28:05.0328419+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>2025-12-12T05:28:05.0328419+08:00</EndTime> <StartTime>2025-12-12T05:28:05.0328419+08:00</StartTime> <TimeOffset>4.1</TimeOffset> </GetHealthModel>
Response Information
Resource Description
State状态码:
0. 表示成功
1100. 表示设备不存在
| Name | Description | Type | Additional information |
|---|---|---|---|
| BloodPressureItems |
血压信息集合 |
Collection of BloodPressure |
None. |
| BloodSugarItems |
血糖信息 |
Collection of BloodSugarInfo |
None. |
| BloodOxygenItems |
血氧信息 |
Collection of BloodOxygenInfo |
None. |
| Items |
健康信息 |
Collection of HealthInfo |
None. |
| HeartItems |
健康信息 心率 |
Collection of HealthInfo |
None. |
| SleepItems |
睡眠信息 |
Collection of SleepInfo |
None. |
| HealthRatio |
血压数据比例 |
HealthRatio |
None. |
| SleepRatio |
睡眠数据比例 |
SleepRatio |
None. |
| StepCount |
步数 |
integer |
None. |
| State |
状态码 |
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
}
],
"BloodOxygenItems": [
{
"IMEI": "sample string 1",
"LastUpdate": "sample string 2",
"BloodOxygen": 3.0
},
{
"IMEI": "sample string 1",
"LastUpdate": "sample string 2",
"BloodOxygen": 3.0
}
],
"Items": [
{
"IMEI": "sample string 1",
"Steps": 2,
"Heartbeat": 3,
"BloodPressure": 4.0,
"Diastolic": 5.0,
"Shrink": 6.0,
"LastUpdate": "sample string 7",
"BloodSugar": 8.0,
"BloodOxygen": 9.0
},
{
"IMEI": "sample string 1",
"Steps": 2,
"Heartbeat": 3,
"BloodPressure": 4.0,
"Diastolic": 5.0,
"Shrink": 6.0,
"LastUpdate": "sample string 7",
"BloodSugar": 8.0,
"BloodOxygen": 9.0
}
],
"HeartItems": [
{
"IMEI": "sample string 1",
"Steps": 2,
"Heartbeat": 3,
"BloodPressure": 4.0,
"Diastolic": 5.0,
"Shrink": 6.0,
"LastUpdate": "sample string 7",
"BloodSugar": 8.0,
"BloodOxygen": 9.0
},
{
"IMEI": "sample string 1",
"Steps": 2,
"Heartbeat": 3,
"BloodPressure": 4.0,
"Diastolic": 5.0,
"Shrink": 6.0,
"LastUpdate": "sample string 7",
"BloodSugar": 8.0,
"BloodOxygen": 9.0
}
],
"SleepItems": [
{
"Imei": "sample string 1",
"TotalSec": 2,
"DeepSleepSec": 3,
"LightSleepSec": 4,
"Roll": 5,
"Wake": 6,
"LastUpdated": "2025-12-12T05:28:05.0357717+08:00",
"StartTime": "2025-12-12T05:28:05.0357717+08:00",
"EndTime": "2025-12-12T05:28:05.0357717+08:00"
},
{
"Imei": "sample string 1",
"TotalSec": 2,
"DeepSleepSec": 3,
"LightSleepSec": 4,
"Roll": 5,
"Wake": 6,
"LastUpdated": "2025-12-12T05:28:05.0357717+08:00",
"StartTime": "2025-12-12T05:28:05.0357717+08:00",
"EndTime": "2025-12-12T05:28:05.0357717+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>
<BloodOxygenItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
<d2p1:BloodOxygenInfo>
<d2p1:BloodOxygen>3</d2p1:BloodOxygen>
<d2p1:IMEI>sample string 1</d2p1:IMEI>
<d2p1:LastUpdate>sample string 2</d2p1:LastUpdate>
</d2p1:BloodOxygenInfo>
<d2p1:BloodOxygenInfo>
<d2p1:BloodOxygen>3</d2p1:BloodOxygen>
<d2p1:IMEI>sample string 1</d2p1:IMEI>
<d2p1:LastUpdate>sample string 2</d2p1:LastUpdate>
</d2p1:BloodOxygenInfo>
</BloodOxygenItems>
<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:BloodOxygen>9</d2p1:BloodOxygen>
<d2p1:BloodPressure>4</d2p1:BloodPressure>
<d2p1:BloodSugar>8</d2p1:BloodSugar>
<d2p1:Diastolic>5</d2p1:Diastolic>
<d2p1:Heartbeat>3</d2p1:Heartbeat>
<d2p1:IMEI>sample string 1</d2p1:IMEI>
<d2p1:LastUpdate>sample string 7</d2p1:LastUpdate>
<d2p1:Shrink>6</d2p1:Shrink>
<d2p1:Steps>2</d2p1:Steps>
</d2p1:HealthInfo>
<d2p1:HealthInfo>
<d2p1:BloodOxygen>9</d2p1:BloodOxygen>
<d2p1:BloodPressure>4</d2p1:BloodPressure>
<d2p1:BloodSugar>8</d2p1:BloodSugar>
<d2p1:Diastolic>5</d2p1:Diastolic>
<d2p1:Heartbeat>3</d2p1:Heartbeat>
<d2p1:IMEI>sample string 1</d2p1:IMEI>
<d2p1:LastUpdate>sample string 7</d2p1:LastUpdate>
<d2p1:Shrink>6</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:BloodOxygen>9</d2p1:BloodOxygen>
<d2p1:BloodPressure>4</d2p1:BloodPressure>
<d2p1:BloodSugar>8</d2p1:BloodSugar>
<d2p1:Diastolic>5</d2p1:Diastolic>
<d2p1:Heartbeat>3</d2p1:Heartbeat>
<d2p1:IMEI>sample string 1</d2p1:IMEI>
<d2p1:LastUpdate>sample string 7</d2p1:LastUpdate>
<d2p1:Shrink>6</d2p1:Shrink>
<d2p1:Steps>2</d2p1:Steps>
</d2p1:HealthInfo>
<d2p1:HealthInfo>
<d2p1:BloodOxygen>9</d2p1:BloodOxygen>
<d2p1:BloodPressure>4</d2p1:BloodPressure>
<d2p1:BloodSugar>8</d2p1:BloodSugar>
<d2p1:Diastolic>5</d2p1:Diastolic>
<d2p1:Heartbeat>3</d2p1:Heartbeat>
<d2p1:IMEI>sample string 1</d2p1:IMEI>
<d2p1:LastUpdate>sample string 7</d2p1:LastUpdate>
<d2p1:Shrink>6</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>2025-12-12T05:28:05.0357717+08:00</d2p1:EndTime>
<d2p1:Imei>sample string 1</d2p1:Imei>
<d2p1:LastUpdated>2025-12-12T05:28:05.0357717+08:00</d2p1:LastUpdated>
<d2p1:LightSleepSec>4</d2p1:LightSleepSec>
<d2p1:Roll>5</d2p1:Roll>
<d2p1:StartTime>2025-12-12T05:28:05.0357717+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>2025-12-12T05:28:05.0357717+08:00</d2p1:EndTime>
<d2p1:Imei>sample string 1</d2p1:Imei>
<d2p1:LastUpdated>2025-12-12T05:28:05.0357717+08:00</d2p1:LastUpdated>
<d2p1:LightSleepSec>4</d2p1:LightSleepSec>
<d2p1:Roll>5</d2p1:Roll>
<d2p1:StartTime>2025-12-12T05:28:05.0357717+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>