This function refreshes the fitbit token as described in https://dev.fitbit.com/docs/oauth2/#refreshing-tokens.
The internal refresh function (
httr package somehow fails to refresh it.
Fitbit API token generated with
1 2 3 4
## Not run: token <- refresh_fitbit_token(token) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.