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.
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
Best AnswerThank 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
Best Answer
@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:
Best AnswerI mean having to enter my data (distance, number of steps, calories consomer ) for use in an application.
thanks
Best AnswerIn 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
Best AnswerThank you Dan for your help.
Best Answer