04-27-2015 15:01
04-27-2015 15:01
Hi !
I develop for my internship an application that uses the library fitbit4J to get my activities data Fitbit.
I was able to recover the Client ( Consumer) Key / Client ( Consumer) Secret, the access token and PIN . I used the following tutorial : http://blog.kopis.de/minimum-working-example-for-fitbit4j/
Which is an application JavaSE
I imported the following jars :
1/I got this error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
at fitbitJ3.Main.main(Main.java:36)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
2/I did not understand the usefulness of the ruby file fitbit_console_application.rb and how I fit into the Java project.
can you help me please?
thanks
Answered! Go to the Best Answer.
04-28-2015 09:32
04-28-2015 09:32
In that case, setting up any OAuth 1.0 compliant client library should allow you to do that.
The link to the documentation I posted has distance, steps, calories, etc. You can find other API endpoints at https://wiki.fitbit.com/display/API/Fitbit+Resource+Access+API
04-27-2015 15:04
04-27-2015 15:04
Hi,
The Fitbit4J library is deprecated and it is recommended that you a popular OAuth 1.0 library thats available in the language of your choice.
04-27-2015 15:15
04-27-2015 15:15
Thank you for your answer, I am beginner in developpement Fitbit API, i think that Oauth1.0 is used for authentication, so how can i recover activities data?
thank you
04-27-2015 16:15
04-27-2015 16:15
@samFit2015 wrote:
Thank you for your answer, I am beginner in developpement Fitbit API, i think that Oauth1.0 is used for authentication, so how can i recover activities data?
thank you
What do you mean by recover?
Documentation about our Activities APIs is available on the wiki:
04-28-2015 00:44
04-28-2015 00:44
I mean having to enter my data (distance, number of steps, calories consomer ) for use in an application.
thanks
04-28-2015 09:32
04-28-2015 09:32
In that case, setting up any OAuth 1.0 compliant client library should allow you to do that.
The link to the documentation I posted has distance, steps, calories, etc. You can find other API endpoints at https://wiki.fitbit.com/display/API/Fitbit+Resource+Access+API
04-29-2015 01:01
04-29-2015 01:01
Thank you Dan for your help.