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

Fitbit web API question

organized the question details regarding the implementation of Fitbit web API.

 

1. What is the maximum setting of expires_in when requesting RefreshToken?
    Setting expires_in to 3153600 does not apply.

 

2. What should I use for unsubscribe token?
    Token when subscribing? The latest token?

Best Answer
1 REPLY 1

Hi @Healthcarechan 

 

1. Access tokens maximum lifespan is 8 hours (28800) when requesting a refresh token.   See https://dev.fitbit.com/build/reference/web-api/oauth2/#access-token-request.   

 

2. When the access token expires it becomes invalid.   You'll use the refresh token to obtain a new access token/refresh token pair.   Once the refresh token is used, it becomes invalid.   The new access token and refresh token provided will become the current tokens for the user. See https://dev.fitbit.com/build/reference/web-api/oauth2/#refreshing-tokens.   As long as you maintain the current active access token and refresh token, you will retain access to the user's data.   If you decide you want to revoke the access token, See https://dev.fitbit.com/build/reference/web-api/oauth2/#revoking-tokens

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