connectToAPI: Connects to Fibit API
Description
Connects to the Fitbit API with OAuth 2.
See https://dev.fitbit.com/docs/oauth2/
Usage
connectToAPI(appname, key, secret)
Arguments
appname
Name of the Fitbit App
secret
Fibit API Client secret
Value
A Fitbit API token, that will be cached