I am using FitBit API to get Activities. In response I am getting a JSON array of activities. For each activity they provides some details like name, activityId, calories,etc but date and time is not available. Is there any API to get activity details along with start date and time.
FitBit API integration IOS
3.3k views Asked by Suresh At
3
There are 3 answers
0
On
Please call this service https://api.fitbit.com/1/user/[user-id]/activities/date/[date].json
You will get start time and duration example
{
"description" : "Very Leisurely - under 10 mph",
"category" : "activity",
"name" : "Bike",
"calories" : 1000,
"id" : "572c571610b47a37753055c6",
"activityType" : "Bike",
"userId" : "5722f36110b47af433f111c9",
"deviceName" : "Fitbit",
"duration" : 1200,
"distance" : 1.5,
"startDate" : "2016-05-06",
"startTime" : "12:40",
"steps" : 0
}
For step by step tutorial and source code , you should go https://appengineer.in/2016/04/30/fitbit-aouth-in-ios-app/
Yes. Check the fitbit api docs, there is a clearly marked attribute called
startTime
.