09-17-2014 07:12 - edited 09-17-2014 07:13
09-17-2014 07:12 - edited 09-17-2014 07:13
I was testing intraday-time-series-api to get "activities/calories" resources, and noticed that json elements names in the response are different from your example. To be specific, I called "/1/user/activities/calories/date/today/today/15min.json" expecting "activities-log-calories-intraday" and "activities-log-calories" elements, but actually received "activities-calories-intraday" and "activities-calories" (without "log").
I just wanna make sure if these current object names are "correct", and not going to be changed in the future.
Thanks,
- Hoon
Answered! Go to the Best Answer.
Best Answer09-17-2014 08:56
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.
09-17-2014 08:56
Hello Hoon.
The version that has "log" word in it is legacy version.
You can achieve "activities-log-calories-intraday" by changing your URI to be
/1/user/-/activities/log/calories/date/today/today/15min.json
instead of
/1/user/-/activities/calories/date/today/today/15min.json
however I'd suggest you to use new format that does not have word "log" in it.
For more information please refer to this page: https://wiki.fitbit.com/display/API/API-Get-Time-Series
09-17-2014 08:56
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.
09-17-2014 08:56
Hello Hoon.
The version that has "log" word in it is legacy version.
You can achieve "activities-log-calories-intraday" by changing your URI to be
/1/user/-/activities/log/calories/date/today/today/15min.json
instead of
/1/user/-/activities/calories/date/today/today/15min.json
however I'd suggest you to use new format that does not have word "log" in it.
For more information please refer to this page: https://wiki.fitbit.com/display/API/API-Get-Time-Series
09-17-2014 12:14
09-17-2014 12:14
Thanks for your quick response 😄
Best Answer09-25-2014 17:04
09-25-2014 17:04
Hi,
Best Answer09-25-2014 19:11
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.
09-25-2014 19:11
Hello,
please check https://wiki.fitbit.com/display/API/API-Get-Intraday-Time-Series
Best Answer09-25-2014 20:30
09-25-2014 20:30
Hello Ivan,
As I mentioned in my message, I have already checked this link but still I am getting error, I need to get intraday activity logs for steps count and distance, I would really appreciate it if you could help me.
Thanks,
Josh
Best Answer09-25-2014 20:56
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.
09-25-2014 20:56
In your post you mentioned you used link
https://wiki.fitbit.com/display/API/API-Get-Time-S
which is different from what I sent:
https://wiki.fitbit.com/display/API/API-Get-Intrad
please confirm that you also checked the latest one.
Best Answer09-29-2014 18:30
09-29-2014 18:30
Hi Ivan,
Thanks for your message. I had checked before this link but could not figured out how to fix the issue, however it is now resolved. I aslo found this link: http://www.diybiomechanics.com/2012/02/07/fitbit-lab/ which helped me in coding. Now, I can get minute level by using this URL: "http://api.fitbit.com/1/user/-/" + currentActivity + "/date/" + "2014-09-21/2014-09-21" + ".json"; I can also get 15minute level data via "2014-09-21/1d/15min/time/0:00/23:00", but if I want to get hour level, when I change the URL to this one: "2014-09-21/1d/60min/time/0:00/23:00" it doesn't work, could you please advise me in this regard?
Looking forward to hearing from you.
Thanks,
Josh
Best Answer09-29-2014 22:59
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.
09-29-2014 22:59
Hello Josh,
please read carefully through the link I posted above: https://wiki.fitbit.com/display/API/API-Get-Intraday-Time-Series - it has all information about intraday time series.
As it says in that wiki the only presicions that are supported are: 15 min and 1 min. No other presicions are currently supported.
Best Answer