public interface AthleteAPI
API definitions for implementation of AthleteService
@GET(value="/athletes/{id}")
StravaAthlete getAthlete(@Path(value="id")
Integer athleteId)
throws NotFoundException
athleteId - Athlete identifierNotFoundException - If the athlete doesn't existAthleteService.getAthlete(java.lang.Integer)@GET(value="/athletes/{id}")
void getAthlete(@Path(value="id")
Integer athleteId,
StravaAPICallback<StravaAthlete> callback)
throws NotFoundException
athleteId - Athlete identifiercallback - Callback to be executed once the call is completedNotFoundException - If the athlete doesn't existAthleteService.getAthlete(java.lang.Integer)@GET(value="/athlete") StravaAthlete getAuthenticatedAthlete()
AthleteService.getAuthenticatedAthlete()@GET(value="/athlete") void getAuthenticatedAthlete(StravaAPICallback<StravaAthlete> callback)
callback - Callback to be executed once the call is completedAthleteService.getAuthenticatedAthlete()@GET(value="/athletes/{id}/friends")
StravaAthlete[] listAthleteFriends(@Path(value="id")
Integer athleteId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException,
BadRequestException
athleteId - 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 existBadRequestException - If the paging instructions are invalidAthleteService.listAthleteFriends(Integer, javastrava.util.Paging)@GET(value="/athletes/{id}/friends")
void listAthleteFriends(@Path(value="id")
Integer athleteId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage,
StravaAPICallback<StravaAthlete[]> callback)
throws NotFoundException,
BadRequestException
athleteId - Athlete identifierpage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)callback - Callback to be executed once the call is completedNotFoundException - If the athlete with the given id doesn't existBadRequestException - If the paging instructions are invalidAthleteService.listAthleteFriends(Integer, javastrava.util.Paging)@GET(value="/athletes/{id}/koms")
StravaSegmentEffort[] listAthleteKOMs(@Path(value="id")
Integer athleteId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException,
BadRequestException
athleteId - 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 existBadRequestException - If the paging instructions are invalidAthleteService.listAthleteKOMs(Integer, javastrava.util.Paging)@GET(value="/athletes/{id}/koms")
void listAthleteKOMs(@Path(value="id")
Integer athleteId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage,
StravaAPICallback<StravaSegmentEffort[]> callback)
throws NotFoundException,
BadRequestException
athleteId - Athlete identifierpage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)callback - Callback to be executed once the call is completedNotFoundException - If the athlete doesn't existBadRequestException - If the paging instructions are invalidAthleteService.listAthleteKOMs(Integer, javastrava.util.Paging)@GET(value="/athletes/{id}/both-following")
StravaAthlete[] listAthletesBothFollowing(@Path(value="id")
Integer athleteId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException,
BadRequestException
athleteId - 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 existBadRequestException - If the paging instructions are invalidAthleteService.listAthletesBothFollowing(Integer, javastrava.util.Paging)@GET(value="/athletes/{id}/both-following")
void listAthletesBothFollowing(@Path(value="id")
Integer athleteId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage,
StravaAPICallback<StravaAthlete[]> callback)
throws NotFoundException,
BadRequestException
athleteId - Athlete identifierpage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)callback - Callback to be executed once the call is completedNotFoundException - If the athlete with the given id doesn't existBadRequestException - If the paging instructions are invalidAthleteService.listAthletesBothFollowing(Integer, javastrava.util.Paging)@GET(value="/athlete/friends") StravaAthlete[] listAuthenticatedAthleteFriends(@Query(value="page") Integer page, @Query(value="per_page") Integer perPage) throws BadRequestException
page - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)BadRequestException - If the paging instructions are invalidAthleteService.listAuthenticatedAthleteFriends(javastrava.util.Paging)@GET(value="/athlete/friends")
void listAuthenticatedAthleteFriends(@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage,
StravaAPICallback<StravaAthlete[]> callback)
throws BadRequestException
page - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)callback - Callback to be executed once the call is completedBadRequestException - If the paging instructions are invalidAthleteService.listAuthenticatedAthleteFriends(javastrava.util.Paging)@GET(value="/athletes/{id}/stats")
StravaStatistics statistics(@Path(value="id")
Integer athleteId)
throws NotFoundException
athleteId - Athlete identifierNotFoundException - If the identified athlete doesn't existAthleteService.statistics(Integer)@GET(value="/athletes/{id}/stats")
void statistics(@Path(value="id")
Integer athleteId,
StravaAPICallback<StravaStatistics> callback)
throws NotFoundException
athleteId - Athlete identifiercallback - Callback to be executed once the call is completedNotFoundException - If the identified athlete doesn't existAthleteService.statistics(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)@PUT(value="/athlete")
void 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,
StravaAPICallback<StravaAthlete> callback)
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 kilogramscallback - Callback to be executed once the call is completedAthleteService.updateAuthenticatedAthlete(String, String, String, StravaGender, Float)@GET(value="/athlete/zones") StravaAthleteZones getAuthenticatedAthleteZones()
@GET(value="/athlete/zones") void getAuthenticatedAthleteZones(StravaAPICallback<StravaAthleteZones> callback)
callback - The callback used to return the asynchronous resultCopyright © 2016 Dan Shannon. All rights reserved.