public class GearServiceImpl extends StravaServiceImpl<GearAPI> implements GearService
Implementation of ClubService
requestRate, requestRateDaily, restService| Modifier and Type | Method and Description |
|---|---|
StravaGear |
getGear(String id)
Retrieve details about a specific item of
StravaGear. |
static GearService |
instance(Token token)
Returns an instance of
gear services |
accessTokenIsValid, getToken, requestRateDailyPercentage, requestRatePercentagepublic static GearService instance(Token token)
Returns an instance of gear 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 APIUnauthorizedException - If the token used to create the service is invalidpublic StravaGear getGear(String id)
GearService
Retrieve details about a specific item of StravaGear. The requesting StravaAthlete must own the StravaGear. At this time it is
not possible to view just anyone's gear type and usage.
Returns null if club with the given id does not exist
URL GET https://www.strava.com/api/v3/gear/:id
getGear in interface GearServiceid - The id of the StravaGear to be retrieved.StravaGear representation.GearService.getGear(java.lang.String)Copyright © 2015 Dan Shannon. All rights reserved.