08-29-2016 23:16
08-29-2016 23:16
Endpoints:
$importHandle->connectFitbit("1/user/$userID/activities/date/2016-08-08.json", $token);
$importHandle->connectFitbit("1/user/$userID/activities/heart/date/2016-08-08/1d.json", $token);
Responses:
{ "activities": [], "goals": { "activeMinutes": 30, "caloriesOut": 2031, "distance": 8.05, "steps": 10000 }, "summary": { "activeScore": -1, "activityCalories": 800, "caloriesBMR": 1167, "caloriesOut": 1780, "distances": [ { "activity": "total", "distance": 7.55 }, { "activity": "tracker", "distance": 7.55 }, { "activity": "loggedActivities", "distance": 0 }, { "activity": "veryActive", "distance": 1.88 }, { "activity": "moderatelyActive", "distance": 1.31 }, { "activity": "lightlyActive", "distance": 4.27 }, { "activity": "sedentaryActive", "distance": 0 } ], "fairlyActiveMinutes": 28, "lightlyActiveMinutes": 184, "marginalCalories": 448, "sedentaryMinutes": 1200, "steps": 11287, "veryActiveMinutes": 28 } }
Seems no heart rate data?
{ "activities-heart": [ { "dateTime": "2016-08-08", "value": { "customHeartRateZones": [], "heartRateZones": [ { "max": 91, "min": 30, "name": "Out of Range" }, { "max": 128, "min": 91, "name": "Fat Burn" }, { "max": 155, "min": 128, "name": "Cardio" }, { "max": 220, "min": 155, "name": "Peak" } ] } } ], "activities-heart-intraday": { "dataset": [], "datasetInterval": 1, "datasetType": "minute" } }
Answered! Go to the Best Answer.
08-30-2016 13:35
08-30-2016 13:35
@badfish_sd If the user doesn't have a device with heart rate, or if they turned heart rate off, then no heart rate data will appear.
08-30-2016 02:16
08-30-2016 02:16
heartrate is within the scope...
"scope": "heartrate activity",
08-30-2016 13:35
08-30-2016 13:35
@badfish_sd If the user doesn't have a device with heart rate, or if they turned heart rate off, then no heart rate data will appear.
08-30-2016 14:05
08-30-2016 14:05
Thanks. She has an Alta. Just checked Fitbit product page, and realize it does NOT have heartrate function.