Request for data of Blood Pressure


GET /openapiv2/user/user-id/bp/

https://api.ihealthlabs.com:8443/openapiv2/user/05dffbe0dd*****/bp.json/?client_id=ddb9cbc759*****&client_secret=4738f9d00e*****&redirect_uri=http%3a%2f%2f+yourcallback.com%2f%3fthis%3dthat&access_token=xpoBt0ThQQ*****&page_index=1&sc=d63493704c*****&sv=113cb40956*****

The Request Content:
Important,
In the URL,05dffbe0dd****** means the UserID retrieved by AccessToken, which is required; otherwise, user information cannot be accessed.
In the URL, the value of bp.json is the format of the data you want to fetch, we can support two different kinds of file packages, .json and .xml.

Required Parameters:

Parameter

Description

Client_id

The ID for the client request

client_secret

The key for the request

access_token

The token for access

sc

The serial number for the user

sv

This is type of one on one value based on sv

Optional Parameters:

Parameter

Default

Description

start_time

Date time minus
3 months

The Unix time of which time the BP data start,ex:1572331655(starting from 1970-01-01 0:0:0, until the present date and time, the unit is second)
ago

page_index

First page

The page index of data, which starts from 1

locale

Default (example
in Appendix)

Set the locale / units returned

end_time

Date time plus 1 day

The Unix time of when the BP data ends, it must be later than start_time. ex: 1572418091

The Response Content

The returned values:

Parameter

Description

BPDataList

The data detail of Blood Pressure
BPL: WHO level
DataID: the unique identity
HP: systolic
HR: heart rate
IsArr:
  -1it is null in the database
  1 heart rate is normal
  2 arrhythmia cordis
  3 unknown
LP: diastolic
Lat: the latitude of the testing place
Lon: the longitude of the testing place
MDate: measurement date time
Note: the note of this data
LastChangeTime: Time of last change (UTC)
DataSource: Provides the data source. “Manual” is from manual data entries. “FromDevice” is for data acquired from iHealth devices
TimeZone: Time zone of measurement location

NextPageUrl

The url of next page

CurrentRecordCount

The count of current page

PageLength

The length of one page

PageNumber

The total number of data records

PrevPageUrl

The url of previous page

RecordCount

The total number of data records

BPUnit

The unit of blood pressure (The explanation of value)




GET /openapiv2/application/bp/

https://api.ihealthlabs.com:8443/openapiv2/application/bp.json/?client_id=ddb9cbc759*****&client_secret=4738f9d00e*****&redirect_uri=http%3a%2f%2f+yourcallback.com%2f%3fthis%3dthat&access_token=xpoBt0ThQQ*****&page_index=1&sc=d63493704c*****&sv=113cb40956*****

The Request Content:
Important,
In the URL, the value of bp.json is the format of the data you want to fetch, we can support two different kinds of file packages, .json and .xml.

Required Parameters:

Parameter

Description

Client_id

The ID for the client request

client_secret

The key for the request

access_token

The token for access

sc

The serial number for the user

sv

This is type of one on one value based on sv

Optional Parameters:

Parameter

Default

Description

start_time

Date time minus
3 months

The Unix time of when the BP data starts, ex:1572331655(starting from 1970-01-01 0:0:0, until the present date and time, the unit is second)

page_index

First page

The page index of data, which starts from 1

locale

Default (example
in Appendix)

Set the locale / units returned

end_time

Date time plus 1 day

The Unix time of when the BP data ends, it must be later than start_time. ex: 1572418091

The Response Content

The returned values:

Parameter

Description

BPDataList

The data detail of Blood Pressure
BPL: WHO level
DataID: the unique identity
HP: systolic
HR: heart rate
IsArr:
  -1 it is null in the database
  1 heart rate is normal
  2 arrhythmia cordis
  3 unknown
LP: diastolic
Lat: the latitude of the testing place
Lon: the longitude of the testing place
MDate: measurement date time
userid:unique identity of user
Note: the note of this data
LastChangeTime: Time of last change (UTC)
DataSource: Provides the data source. “Manual” is from manual data entries. “FromDevice” is for data acquired from iHealth devices
TimeZone: Time zone of measurement location

NextPageUrl

The url of next page

CurrentRecordCount

The count of current page

PageLength

The length of one page

PageNumber

The total number of data records

PrevPageUrl

The url of previous page

RecordCount

The total number of data records

BPUnit

The unit of blood pressure(The explanation of value)