retrieveAthlete: Retrieve Athlete Information from API

Description Usage Arguments Value Examples

View source: R/retrieve.R

Description

retrieveAthlete fetches athlete information from the Strava API, checks for errors and the current rate limit, and return the result (full response). Will raise warnings if the response status is not 200, and also if the user has used 90

Usage

1
retrieveAthlete(token, athlete_id = NULL)

Arguments

token

String value for user access token to API

athlete_id

(optional) Athlete ID, if retreiving non-authenticated user

Value

result An httr response object, unparsed

Examples

1
2
3
##Not a real token
## Not run: me <- retrieveAthlete('abcdefghijk')
## Not run: someoneElse <- retrieveAthlete('abcdefghijk', athlete_id='1234')

jarrodolson/StravaR documentation built on May 18, 2019, 4:48 p.m.