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.
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
@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.
Best Answer
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
@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.
Best AnswerThanks. She has an Alta. Just checked Fitbit product page, and realize it does NOT have heartrate function.
Best Answer