public interface AthleteAPI
API definitions for implementation of AthleteService
| Modifier and Type | Method and Description |
|---|---|
StravaAthlete |
getAthlete(Integer id) |
StravaAthlete |
getAuthenticatedAthlete() |
StravaAthlete[] |
listAthleteFriends(Integer id,
Integer page,
Integer perPage) |
StravaSegmentEffort[] |
listAthleteKOMs(Integer id,
Integer page,
Integer perPage) |
StravaAthlete[] |
listAthletesBothFollowing(Integer id,
Integer page,
Integer perPage) |
StravaAthlete[] |
listAuthenticatedAthleteFriends(Integer page,
Integer perPage) |
StravaStatistics |
statistics(Integer id) |
StravaAthlete |
updateAuthenticatedAthlete(String city,
String state,
String country,
StravaGender sex,
Float weight) |
@GET(value="/athlete") StravaAthlete getAuthenticatedAthlete()
AthleteService.getAuthenticatedAthlete()@GET(value="/athletes/{id}")
StravaAthlete getAthlete(@Path(value="id")
Integer id)
throws NotFoundException
id - Athlete identifierNotFoundException - If the athlete doesn't existAthleteService.getAthlete(java.lang.Integer)@PUT(value="/athlete") StravaAthlete updateAuthenticatedAthlete(@Query(value="city") String city, @Query(value="state") String state, @Query(value="country") String country, @Query(value="sex") StravaGender sex, @Query(value="weight") Float weight)
city - City the athlete is fromstate - State/county/territory/canton/departement/whatever the athlete is fromcountry - Country the athlete is fromsex - Gender of the athleteweight - Weight in kilogramsAthleteService.updateAuthenticatedAthlete(String, String, String, StravaGender, Float)@GET(value="/athletes/{id}/koms")
StravaSegmentEffort[] listAthleteKOMs(@Path(value="id")
Integer id,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException
id - Athlete identifierpage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)NotFoundException - If the athlete doesn't existAthleteService.listAthleteKOMs(Integer, javastrava.util.Paging)@GET(value="/athlete/friends") StravaAthlete[] listAuthenticatedAthleteFriends(@Query(value="page") Integer page, @Query(value="per_page") Integer perPage)
page - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)AthleteService.listAuthenticatedAthleteFriends(javastrava.util.Paging)@GET(value="/athletes/{id}/friends")
StravaAthlete[] listAthleteFriends(@Path(value="id")
Integer id,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException
id - Athlete identifierpage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)NotFoundException - If the athlete with the given id doesn't existAthleteService.listAthleteFriends(Integer, javastrava.util.Paging)@GET(value="/athletes/{id}/both-following")
StravaAthlete[] listAthletesBothFollowing(@Path(value="id")
Integer id,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException
id - Athlete identifierpage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)NotFoundException - If the athlete with the given id doesn't existAthleteService.listAthletesBothFollowing(Integer, javastrava.util.Paging)@GET(value="/athletes/{id}/stats")
StravaStatistics statistics(@Path(value="id")
Integer id)
throws NotFoundException
id - Athlete identifierNotFoundException - If the identified athlete doesn't existAthleteService.statistics(Integer)Copyright © 2015 Dan Shannon. All rights reserved.