GET api/user/dailyintake/{id}?fromDate={fromDate}&toDate={toDate}
user daily intake like food,water
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
object representing logged in userid that need to get daily intake data. |
integer |
Required |
| fromDate |
object representing start datetime to get daily intake data. |
decimal number |
Required |
| toDate |
object representing end datetime to get daily intake data. |
decimal number |
None. |
Body Parameters
None.
Response Information
Resource Description
On success, return daily intake data On failure, return null
DailyIntakeResp| Name | Description | Type | Additional information |
|---|---|---|---|
| daily_intake |
daily intake properties like water,food etc |
Collection of DailyIntake |
None. |
| resp_code |
Lifetrons response code |
string |
None. |
| resp_msg |
Lifetrons response message |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"daily_intake": [
{
"water": 1,
"food": "sample string 2",
"timestamp": 3.1,
"is_uploaded": 4
},
{
"water": 1,
"food": "sample string 2",
"timestamp": 3.1,
"is_uploaded": 4
}
],
"resp_code": "sample string 1",
"resp_msg": "sample string 2"
}
application/xml, text/xml
Sample:
<dailyintake_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>
<daily_intake xmlns:d2p1="http://schemas.datacontract.org/2004/07/CommonClasses.user">
<d2p1:daily_intake>
<d2p1:food>sample string 2</d2p1:food>
<d2p1:is_uploaded>4</d2p1:is_uploaded>
<d2p1:timestamp>3.1</d2p1:timestamp>
<d2p1:water>1</d2p1:water>
</d2p1:daily_intake>
<d2p1:daily_intake>
<d2p1:food>sample string 2</d2p1:food>
<d2p1:is_uploaded>4</d2p1:is_uploaded>
<d2p1:timestamp>3.1</d2p1:timestamp>
<d2p1:water>1</d2p1:water>
</d2p1:daily_intake>
</daily_intake>
</dailyintake_resp>