POST api/Device/HealthInfo
获取个人设备的计步,心率等信息
Request Information
Body Parameters
DeviceIdModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceId | integer |
None. |
|
| TimeOffset |
手机时区 |
decimal number |
None. |
| Token |
登录后获取到的 Token |
string |
None. |
| Language |
语言选项 |
string |
None. |
| AppId |
APP应用标识 |
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
| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceId | integer |
None. |
|
| SerialNumber | string |
None. |
|
| Step |
步数 |
integer |
None. |
| Distance |
距离 |
decimal number |
None. |
| Energy |
卡里路 |
decimal number |
None. |
| HeartRate |
心率 |
decimal number |
None. |
| BloodMax |
血压最大值 |
decimal number |
None. |
| BloodMin |
血压最低值 |
decimal number |
None. |
| BloodOxygen |
血氧 |
decimal number |
None. |
| SleepAll |
睡眠 |
decimal number |
None. |
| DeepSleep |
深睡眠 |
decimal number |
None. |
| LightSleep |
浅睡眠 |
decimal number |
None. |
| Note |
闹钟提醒 |
string |
None. |
| LastUpdateTime |
数据更新时间 |
string |
None. |
| State |
状态码 |
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,
"BloodOxygen": 9.0,
"SleepAll": 10.1,
"DeepSleep": 11.1,
"LightSleep": 12.1,
"Note": "sample string 13",
"LastUpdateTime": "sample string 14",
"State": 15
}
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>15</State> <BloodMax>7</BloodMax> <BloodMin>8</BloodMin> <BloodOxygen>9</BloodOxygen> <DeepSleep>11.1</DeepSleep> <DeviceId>1</DeviceId> <Distance>4</Distance> <Energy>5</Energy> <HeartRate>6</HeartRate> <LastUpdateTime>sample string 14</LastUpdateTime> <LightSleep>12.1</LightSleep> <Note>sample string 13</Note> <SerialNumber>sample string 2</SerialNumber> <SleepAll>10.1</SleepAll> <Step>3</Step> </PersonInfoResult>