strava_auth: Generata Strava API authentication token

Description Usage Arguments Examples

View source: R/strava_auth.R

Description

Generate a token for the user and the desired scope. The user is sent to the strava authentication page if he/she hasn't given permission to the app yet, else, is sent to the app webpage.

Usage

1
2
3
4
strava_auth(app_name = Sys.getenv("STRAVA_APP_NAME"),
  app_client_id = Sys.getenv("STRAVA_APP_ID"),
  app_secret = Sys.getenv("STRAVA_APP_SECRET"), token = NULL,
  new_user = FALSE)

Arguments

app_name

Name of your developer app

app_client_id

The Client ID of your developer app

app_secret

The secret for your developer app

Examples

1
strava_auth(app_name = "APP Name", app_client_id = "App Client ID", app_secret = "APP Secret", token = NULL, new_user = FALSE)

lynuhs/stravaR documentation built on Feb. 8, 2021, 11:10 p.m.