06-15-2017 06:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-15-2017 06:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
On my fitibit portal there is list of burnt calories with timeline. I want to fetch the sum of those burn calories but in API response I am not able to find out that key where i can get the sum. I have got below response, can anyone point me to that key name
{
"activities": [
{
"activityId": 1010,
"activityParentId": 90001,
"activityParentName": "Bike",
"calories": 6431,
"description": "Very Leisurely - Less than 10 mph",
"distance": 500,
"duration": 32949000,
"hasStartTime": true,
"isFavorite": false,
"lastModified": "2017-06-14T14:14:16.000Z",
"logId": 8221792555,
"name": "Bike",
"startDate": "2017-06-14",
"startTime": "03:00",
"steps": 0
},
{
"activityId": 1010,
"activityParentId": 90001,
"activityParentName": "Bike",
"calories": 5361,
"description": "Very Leisurely - Less than 10 mph",
"distance": 200,
"duration": 29288000,
"hasStartTime": true,
"isFavorite": false,
"lastModified": "2017-06-14T14:16:48.000Z",
"logId": 8221304140,
"name": "Bike",
"startDate": "2017-06-14",
"startTime": "04:00",
"steps": 0
},
{
"activityId": 12030,
"activityParentId": 90009,
"activityParentName": "Run",
"calories": 566,
"description": "Running - 5 mph (12 min/mile)",
"distance": 11,
"duration": 4271000,
"hasStartTime": true,
"isFavorite": false,
"lastModified": "2017-06-14T12:26:51.000Z",
"logId": 8219575462,
"name": "Run",
"startDate": "2017-06-14",
"startTime": "17:00",
"steps": 8685
},
{
"activityId": 12030,
"activityParentId": 90009,
"activityParentName": "Run",
"calories": 20,
"description": "Running - 5 mph (12 min/mile)",
"distance": 88.51392,
"duration": 3355000,
"hasStartTime": true,
"isFavorite": false,
"lastModified": "2017-06-14T12:25:22.000Z",
"logId": 8219575461,
"name": "Run",
"startDate": "2017-06-14",
"startTime": "17:55",
"steps": 51257
},
{
"activityId": 12030,
"activityParentId": 90009,
"activityParentName": "Run",
"calories": 0,
"description": "Running - 5 mph (12 min/mile)",
"distance": 55,
"duration": 6955000,
"hasStartTime": true,
"isFavorite": false,
"lastModified": "2017-06-14T12:25:52.000Z",
"logId": 8222056063,
"name": "Run",
"startDate": "2017-06-14",
"startTime": "18:55",
"steps": 43932
}
],
"goals": {
"activeMinutes": 30,
"caloriesOut": 2707,
"distance": 8.05,
"steps": 10000
},
"summary": {
"activeScore": -1,
"activityCalories": 10276,
"caloriesBMR": 1581,
"caloriesOut": 11004,
"distances": [
{
"activity": "Bike",
"distance": 500
},
{
"activity": "Bike",
"distance": 200
},
{
"activity": "Run",
"distance": 11
},
{
"activity": "Run",
"distance": 88.51392
},
{
"activity": "Run",
"distance": 55
},
{
"activity": "total",
"distance": 127.64
},
{
"activity": "tracker",
"distance": 0
},
{
"activity": "loggedActivities",
"distance": 854.51392
},
{
"activity": "veryActive",
"distance": 127.64
},
{
"activity": "moderatelyActive",
"distance": 0
},
{
"activity": "lightlyActive",
"distance": 0
},
{
"activity": "sedentaryActive",
"distance": 0
}
],
"fairlyActiveMinutes": 0,
"lightlyActiveMinutes": 0,
"marginalCalories": 8815,
"sedentaryMinutes": 0,
"steps": 102039,
"veryActiveMinutes": 777
}
}

06-20-2017 08:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



06-20-2017 08:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@rahul.matte Should be in the summary, but looks like a few of your logged activities overlap each other (which makes it harder to summarize).

10-31-2017 06:43 - edited 10-31-2017 06:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-31-2017 06:43 - edited 10-31-2017 06:48
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

