04-18-2016 11:57 - edited 04-18-2016 12:03
04-18-2016 11:57 - edited 04-18-2016 12:03
Hi,
I create new website where You can integrate with Fitbit and download Your activities. I would like to download my activities and recognize if it is logged manual (via form on web) or logged from tracker (smartphone). Is it possible with current API? I didn't found such parameter in documentation.
Now I get response:
{
"activities": [
{
"activityId": 17151,
"activityParentId": 90013,
"activityParentName": "Walk",
"calories": 1728,
"description": "less than 2 mph, strolling very slowly",
"distance": 4.000999,
"duration": 41472000,
"hasStartTime": true,
"isFavorite": false,
"lastModified": "2016-04-18T18:44:16.000Z",
"logId": 2266987594,
"name": "Walk",
"startDate": "2016-04-18",
"startTime": "11:11",
"steps": 5271
},
{
"activityId": 90009,
"activityParentId": 90009,
"activityParentName": "Run",
"calories": 300,
"description": "5 mph (12 min/mile)",
"distance": 4,
"duration": 1800000,
"hasStartTime": true,
"isFavorite": false,
"lastModified": "2016-04-18T18:39:26.000Z",
"logId": 2265613093,
"name": "Run",
"startDate": "2016-04-18",
"startTime": "20:09",
"steps": 4201
},
{
"activityId": 90009,
"activityParentId": 90009,
"activityParentName": "Run",
"calories": 300,
"description": "5 mph (12 min/mile)",
"distance": 4.099999,
"duration": 1800000,
"hasStartTime": true,
"isFavorite": false,
"lastModified": "2016-04-18T18:43:45.000Z",
"logId": 2267253247,
"name": "Run",
"startDate": "2016-04-18",
"startTime": "20:13",
"steps": 4306
},
{
"activityId": 90013,
"activityParentId": 90013,
"activityParentName": "Walk",
"calories": 0,
"description": "less than 2 mph, strolling very slowly",
"distance": 0.369178,
"duration": 45013,
"hasStartTime": true,
"isFavorite": false,
"lastModified": "2016-04-18T18:41:55.000Z",
"logId": 2265838395,
"name": "Walk",
"startDate": "2016-04-18",
"startTime": "20:38",
"steps": 0
}
],
"goals": {
"activeMinutes": 30,
"caloriesOut": 2945,
"distance": 8.05,
"steps": 10000
},
"summary": {
"activeScore": -1,
"activityCalories": 1431,
"caloriesBMR": 1554,
"caloriesOut": 2269,
"distances": [
{
"activity": "Walk",
"distance": 4.000999
},
{
"activity": "Run",
"distance": 4
},
{
"activity": "Run",
"distance": 4.099999
},
{
"activity": "Walk",
"distance": 0.369178
},
{
"activity": "total",
"distance": 4
},
{
"activity": "tracker",
"distance": 0
},
{
"activity": "loggedActivities",
"distance": 12.470176
},
{
"activity": "veryActive",
"distance": 0
},
{
"activity": "moderatelyActive",
"distance": 0
},
{
"activity": "lightlyActive",
"distance": 4
},
{
"activity": "sedentaryActive",
"distance": 0
}
],
"fairlyActiveMinutes": 0,
"lightlyActiveMinutes": 691,
"marginalCalories": 0,
"sedentaryMinutes": 553,
"steps": 5264,
"veryActiveMinutes": 0
}
}Thanks for answer
Mateusz
Answered! Go to the Best Answer.
04-18-2016 12:55
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
04-18-2016 12:55
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.