def_initialize: def_initialize

Description Usage Arguments Value See Also Examples

View source: R/R6_initialize.R

Description

Create authentication token with strava (based on web authentication)

Usage

1
2
3
4
5
6
7
def_initialize(
  my_app_name = NULL,
  my_client_id = NULL,
  my_client_secret = NULL,
  my_app_scope = "read,read_all,activity:read_all",
  cache = FALSE
)

Arguments

my_app_name

chr string, the name of the app defined in strava

my_client_id

chr string, the ID of the app like 27881

my_client_secret

chr string, the secret as defined in strava

my_app_scope

chr string for requested scopes, as a comma delimited

cache

logical, TRUE to have local cache of the token, FALSE not string, e.g. "activity:read_all,activity:write"

Value

sig strava token

See Also

http://developers.strava.com/docs/authentication/

https://developers.strava.com/docs/authentication/#detailsaboutrequestingaccess

Examples

1
2
3
4
## Not run: 
connect2strava(strava_key = "mykeyhere", strava_secret = "mysecrethere")

## End(Not run)

longwei66/mountainbikeR documentation built on April 16, 2020, 6:23 p.m.