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

WEB API - pull activities of all users

Hi 

Basically we would be providing trackers to our players to monitor their activities.. So we would players to authorize our application in order to track their activities.. I need help in these cases

1. How can i get list of users who authorized my application?

2. How can i get activities of all users who authorized my application?

3. Each time do i need to save refresh access token to access my user's activities or can i have any permanent token?

Hoping for your support..

 

Regards,

Ananthan

Best Answer
0 Votes
1 REPLY 1

1. How can i get list of users who authorized my application?

We don't have an API call that returns a list of users who have authorize to share data with your application.  However, the Fitbit user id is returned in the /oauth2/token response when you receive the access token and refresh token.

 

2. How can i get activities of all users who authorized my application?

You will need to execute the required activity endpoint for each user.

 

3. Each time do i need to save refresh access token to access my user's activities or can i have any permanent token?

Yes, you will need to save the access token and refresh token.  The access token will be used every time to execute an API to retrieve user data.  The refresh token is used to obtain a new access token and refresh token when the original access token expires.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes