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

Get Data from Users on my Website ( Registed Area )

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 ?

Best Answer
0 Votes
3 REPLIES 3

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. 🙂

See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer
0 Votes

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.

screenshot.jpg

Best Answer
0 Votes

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.

See advanced Fitbit statistics and leaderboards at - https://bitstats.net
Best Answer
0 Votes