Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting started - tutorial and guidance

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

Best Answer
0 Votes
3 REPLIES 3

38 views and no comments?  Bump!

Best Answer
0 Votes

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

 

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

@oldirtdog wrote:

38 views and no comments?  Bump!


Please do not do this.

Best Answer
0 Votes