Hi there,
Just let me clarify;
- Your users have Fitbits
- Your building a site to track your students Fitbit stats
If so, you need to create a Fitbit app for starters here - https://dev.fitbit.com/apps/new
Once you have created your app, you should look at Fitbit libraries (https://github.com/fitbit) there are also other PHP libraries. Google is your friend here.
Once you do this, and write some code and squish some bugs you should have some sort of login page for your students.
Students then visit your site, connect there Fitbit account to your site, you save there tokens and then you make API calls (https://dev.fitbit.com/docs) using there tokens.
Its as simple as that. Good luck. 🙂
Best AnswerHi Bonxy,
wow great thats helps me a lot.
I create an app Do i need all this Key, Client ID .. etc .. ?
i just like to get the Data with ajax by GET https://api.fitbitcom/1/user/[user-id]/activities/date/[date].json
and thatfor i looking for some documentation.
Best AnswerYeh. Once you have your keys you'll enter your client is and secret into our app then you can run GET requests for each user that authenticates with your app.
Your are limited to 150 request per user per hour.
Best Answer