12-08-2015 01:22
12-08-2015 01:22
I Like to get Activity Data from my Students to use Fitbit on my Own webste ( user Account ). How do i do this .. ? What have User to do get get my Website access to they Activity data ?
12-08-2015 14:18 - edited 12-08-2015 14:19
12-08-2015 14:18 - edited 12-08-2015 14:19
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. 🙂
12-09-2015 00:07
12-09-2015 00:07
Hi 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.
12-09-2015 02:25 - edited 12-09-2015 13:22
12-09-2015 02:25 - edited 12-09-2015 13:22
Yeh. 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.