View source: R/compile_segment.R
compile_segment | R Documentation |
Compile generation information on a segment
compile_segment(seglist)
seglist |
a Strava segment list returned by |
compiles information for a segment
dataframe of all information given in a call from get_segment
## Not run:
# create authentication token
# requires user created app name, id, and secret from Strava website
stoken <- httr::config(token = strava_oauth(app_name, app_client_id,
app_secret, cache = TRUE))
# compile segment info
get_segment(stoken, id = 229781) %>% compile_segment
# compile top ten leaderboard for the segment
get_segment(stoken, id = 229781, request = "leaderboard") %>% compile_segment
# compile all efforts for the authenticated user on the segment
get_segment(stoken, id = 4483903, request = 'all_efforts') %>% compile_segment
# compile the starred segments for the user
get_segment(stoken, request = 'starred') %>% compile_segment
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.