GET api/devices/fitness/{id}/bloodoxigen?fromDate={fromDate}&toDate={toDate}
Fetch data of precentage of oxigen in blood
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
object representing logged in userid that need to get fitness data. |
integer |
Required |
fromDate |
object representing start datetime to get fitness data. |
decimal number |
Required |
toDate |
object representing end datetime to get fitness data. |
decimal number |
None. |
Body Parameters
None.
Response Information
Resource Description
On success, return blood oxigen data On failure, return null
BloodOxigenRespName | Description | Type | Additional information |
---|---|---|---|
blood_oxigen |
List of blood oxigen data from selected date |
Collection of BloodOxigen |
None. |
resp_code |
Lifetrons response code |
string |
None. |
resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "blood_oxigen": [ { "value": 1, "time": 2.1, "is_uploaded": 3 }, { "value": 1, "time": 2.1, "is_uploaded": 3 } ], "resp_code": "sample string 1", "resp_msg": "sample string 2" }
application/xml, text/xml
Sample:
<blood_oxigen xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.ResponseAgg.v5"> <resp_code xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">sample string 1</resp_code> <resp_msg xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Models">sample string 2</resp_msg> <blood_oxigen xmlns:d2p1="http://schemas.datacontract.org/2004/07/CommonClasses.devices"> <d2p1:blood_oxigen> <d2p1:is_uploaded>3</d2p1:is_uploaded> <d2p1:time>2.1</d2p1:time> <d2p1:value>1</d2p1:value> </d2p1:blood_oxigen> <d2p1:blood_oxigen> <d2p1:is_uploaded>3</d2p1:is_uploaded> <d2p1:time>2.1</d2p1:time> <d2p1:value>1</d2p1:value> </d2p1:blood_oxigen> </blood_oxigen> </blood_oxigen>