RetrieveAthlete <- function(id) {
reqUri <- "https://www.strava.com/api/v3/athlete";
if (!missing(id)) {
reqUri <- paste(reqUri, "s/", id, sep="")
}
request <- GET(reqUri, config=config)
if (request$status_code != 200) {
print("Something wrong")
return();
}
return(content(request))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.