public class SegmentEffortServiceImpl extends StravaServiceImpl<SegmentEffortAPI> implements SegmentEffortService
requestRate, requestRateDaily, restService| Modifier and Type | Method and Description |
|---|---|
StravaSegmentEffort |
getSegmentEffort(Long id)
Retrieve details about a specific segment effort.
|
static SegmentEffortService |
instance(Token token)
Returns an instance of
segment effort services |
accessTokenIsValid, getToken, requestRateDailyPercentage, requestRatePercentagepublic static SegmentEffortService instance(Token token)
Returns an instance of segment effort services
Instances are cached so that if 2 requests are made for the same token, the same instance is returned
token - The Strava access token to be used in requests to the Strava APIpublic StravaSegmentEffort getSegmentEffort(Long id)
SegmentEffortServiceRetrieve details about a specific segment effort. The effort must be public or it must correspond to the current athlete.
Returns null if the segment effort does not exist or is private
URL GET https://www.strava.com/api/v3/segment_efforts/:id
getSegmentEffort in interface SegmentEffortServiceid - The id of the segment to be retrievedSegmentEffortService.getSegmentEffort(Long)Copyright © 2015 Dan Shannon. All rights reserved.