refresh_fitbit_token: Refresh the expired fitbit token.

Description Usage Arguments Examples

View source: R/basic_api_functions.R

Description

This function refreshes the fitbit token as described in https://dev.fitbit.com/docs/oauth2/#refreshing-tokens. The internal refresh function (refresh_oauth2.0) of the httr package somehow fails to refresh it.

Usage

1

Arguments

token

Fitbit API token generated with get_fitbit_token.

Examples

1
2
3
4
## Not run: 
token <- refresh_fitbit_token(token)

## End(Not run)

Avsecz/fitbitr documentation built on Oct. 9, 2017, 8:55 a.m.