POST api/devices/fitness/sync/bloodoxigen/{id}
Sync percentage of oxigen in blood data from fitness devices to Lifetrons server
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
object representing logged in userid that need to sync fitness data. |
integer |
Required |
Body Parameters
object representing blood oxigen data that need sync.
BloodOxigenReq| Name | Description | Type | Additional information |
|---|---|---|---|
| blood_oxigen |
List of blood oxigen data from selected date |
Collection of BloodOxigen |
Required |
Request Formats
application/json, text/json
Sample:
{
"blood_oxigen": [
{
"value": 1,
"time": 2.1,
"is_uploaded": 3
},
{
"value": 1,
"time": 2.1,
"is_uploaded": 3
}
]
}
application/xml, text/xml
Sample:
<BloodOxigenReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.RequestAgg.v5">
<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>
</BloodOxigenReq>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
On success, Lifetrons response codes On failure, Lifetrons response codes
DeviceDataResp| Name | Description | Type | Additional information |
|---|---|---|---|
| device |
device id for any request or response |
Lifetrons_device |
None. |
| resp_code |
Lifetrons response code |
string |
None. |
| resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"device": {
"Lifetrons_device_id": "sample string 1",
"device_id": "sample string 2"
},
"resp_code": "sample string 1",
"resp_msg": "sample string 2"
}
application/xml, text/xml
Sample:
<device_data_resp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.ResponseAgg">
<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>
<device xmlns:d2p1="http://schemas.datacontract.org/2004/07/LifetronsPhoneApi.Domain.DeviceAgg">
<d2p1:Lifetrons_device_id>sample string 1</d2p1:Lifetrons_device_id>
<d2p1:device_id>sample string 2</d2p1:device_id>
</device>
</device_data_resp>