public interface ClubAPI
API definition of the endpoints for club services
| Modifier and Type | Method and Description |
|---|---|
StravaClub |
getClub(Integer id) |
StravaClubMembershipResponse |
join(Integer id) |
StravaClubMembershipResponse |
leave(Integer id) |
StravaClub[] |
listAuthenticatedAthleteClubs() |
StravaAthlete[] |
listClubMembers(Integer id,
Integer page,
Integer perPage) |
StravaActivity[] |
listRecentClubActivities(Integer id,
Integer page,
Integer perPage) |
@GET(value="/clubs/{id}")
StravaClub getClub(@Path(value="id")
Integer id)
throws NotFoundException
id - Club identifierNotFoundException - If the club with the given id doesn't existClubService.getClub(java.lang.Integer)@GET(value="/athlete/clubs") StravaClub[] listAuthenticatedAthleteClubs()
ClubService.listAuthenticatedAthleteClubs()@GET(value="/clubs/{id}/members")
StravaAthlete[] listClubMembers(@Path(value="id")
Integer id,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException
id - CLub identifierpage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)NotFoundException - If the club with the given id doesn't existClubService.listClubMembers(Integer, javastrava.util.Paging)@GET(value="/clubs/{id}/activities")
StravaActivity[] listRecentClubActivities(@Path(value="id")
Integer id,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException
id - Club identifierpage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)NotFoundException - If the club with the given id doesn't existClubService.listRecentClubActivities(Integer, javastrava.util.Paging)@POST(value="/clubs/{id}/join")
StravaClubMembershipResponse join(@Path(value="id")
Integer id)
throws NotFoundException
id - The club the authenticated athlete wishes to joinNotFoundException - If the club with the given id doesn't existClubService.joinClub(java.lang.Integer)@POST(value="/clubs/{id}/leave")
StravaClubMembershipResponse leave(@Path(value="id")
Integer id)
throws NotFoundException
id - The club the authenticated athlete wishes to leaveNotFoundException - If the club with the given id doesn't existClubService.leaveClub(java.lang.Integer)Copyright © 2015 Dan Shannon. All rights reserved.