01-02-2015 10:05 - last edited on 01-02-2015 14:09 by JeremiahFitbit
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-02-2015 10:05 - last edited on 01-02-2015 14:09 by JeremiahFitbit
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I was looking at this page: https://wiki.fitbit.com/display/API/API+Client+Libraries
I was under the impression that Fitbit4J was the implementation that is supported by FitBit, but on this page, it has been crossed out and marked 'Deprecated'. But all the API documentation on the wiki pages is still based on this version it seems.
Could you please clarify if that is the case or is Fitbit + Twilio Node.js the latest and correct API?
Thanks,
hwcir
Answered! Go to the Best Answer.
Accepted Solutions
01-02-2015 11:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
01-02-2015 11:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
@hwcir wrote:
In that case, if I understand correctly, per what Jeremiah states, I should use a different library for OAuth and then make REST service calls directly, instead of going via fitbit4j client jar. Is that correct? Also, couuld you confirm that fitbit4j will still be around for sometime.
Thanks
hwcir
Correct, we highly recommend using a popular well supported and tested OAuth library in the language you are developing in.
Fitbit4J is open source and I don't forsee that source repository being deleted. You are more than welcome to fork the repo on Github and maintain your own copy of the code as well.
01-02-2015 10:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
01-02-2015 10:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The Fitbit4J library is indeed deprecated and the Fitbit + Twilio Node.js is a demonstration/example rather than a client library. Note that Fitbit4J is Java and Fitbit + Twilio Node.js is Node.js.
What language are you developing in?

01-02-2015 10:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-02-2015 10:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Fitbit currently does not have any official SDKs. I suggest that you find the best OAuth 1.0a library for your preferred language and framework and use it with the Fitbit API.

01-02-2015 10:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-02-2015 10:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi dchen,
I am developing in JAVA. We have developed our application based on Fitbit4j as that is supported and maintained current by Fitbit. You still intend to support it, correct? What are the implications of deprecating fitbit4j for us?
Thanks,
hwcir

01-02-2015 11:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
01-02-2015 11:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@hwcir wrote:
Hi dchen,
I am developing in JAVA. We have developed our application based on Fitbit4j as that is supported and maintained current by Fitbit. You still intend to support it, correct? What are the implications of deprecating fitbit4j for us?
Thanks,hwcir
We no longer actively maintain nor develop the library. If something in the library breaks, theres no guarantee we will fix it.

01-02-2015 11:12 - edited 01-02-2015 11:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-02-2015 11:12 - edited 01-02-2015 11:15
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
In that case, if I understand correctly, per what Jeremiah states, I should use a different library for OAuth and then make REST service calls directly, instead of going via fitbit4j client jar. Is that correct? Also, couuld you confirm that fitbit4j will still be around for sometime.
Thanks
hwcir

01-02-2015 11:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
01-02-2015 11:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
@hwcir wrote:
In that case, if I understand correctly, per what Jeremiah states, I should use a different library for OAuth and then make REST service calls directly, instead of going via fitbit4j client jar. Is that correct? Also, couuld you confirm that fitbit4j will still be around for sometime.
Thanks
hwcir
Correct, we highly recommend using a popular well supported and tested OAuth library in the language you are developing in.
Fitbit4J is open source and I don't forsee that source repository being deleted. You are more than welcome to fork the repo on Github and maintain your own copy of the code as well.
01-02-2015 11:24 - edited 01-02-2015 11:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-02-2015 11:24 - edited 01-02-2015 11:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks! Just a note, it might be good idea to remove the line
"To help you start implementing Fitbit API in your applications we provide reference implementation of the Fitbit API client library in Java (Fitbit4J). This library is supported by Fitbit team and maintained up-to-date with all API developments."
from this page: https://wiki.fitbit.com/display/API/API+Client+Libraries
It will help to avoid any confusions...

01-02-2015 14:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-02-2015 14:05
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks, hwcir. I have removed that from the documentation.

