06-24-2014 12:48
06-24-2014 12:48
I have been playing with the API and I am not having very much luck... I will admit that I do not exactly have the greatest experience with programming, but I am capable of reading most code.
I would like to have a simple program that outputs the steps I have taken for a particular day... I have a web server running CentOS 6... I've been working on PHP, specifically the fitbitphp package...
Ideally, any tips given would assume that I haven't done anything... I have reviewed the API and the API Explorer... I just need a good framework to get me started then I can expand from there...
Thanks
06-30-2014 05:36
06-30-2014 05:36
38 views and no comments? Bump!
06-30-2014 09:02
06-30-2014 09:02
oldirtdog,
I'd say a very good place to start is: https://wiki.fitbit.com/display/API/OAuth+Authentication+in+the+Fitbit+API
You'll find description there how to get your access token that you'll need later to execute any API request. This is very first step you need to do. Without access token you won't be able to make any API requests.
Also this is I'd say the most complicated step. Since it requires that you read the whole wiki page very
carefully to understand how the oauth 1.0a works.
To help you understand/debug your oauth code please check out this page: https://dev.fitbit.com/apps/oauthtutorialpage . This page describes step A in the whole oauth workflow diagram here: https://wiki.fitbit.com/display/API/OAuth+Authentication+in+the+Fitbit+API#OAuthAuthenticationintheF... .
Once you get your access token you'll probably will need to execute getActivities OR get timeseries for body, depends on what kind of data you actually need. Please check out API explorer for available endpoints and pick the one that suits your needs: https://wiki.fitbit.com/display/API/API+Explorer
06-30-2014 12:00
06-30-2014 12:00
@oldirtdog wrote:
38 views and no comments? Bump!
Please do not do this.