public interface ClubAPI
API definition of the endpoints for club services
@GET(value="/clubs/{id}")
StravaClub getClub(@Path(value="id")
Integer clubId)
throws NotFoundException
clubId - Club identifierNotFoundException - If the club with the given id doesn't existClubService.getClub(java.lang.Integer)@GET(value="/clubs/{id}")
void getClub(@Path(value="id")
Integer clubId,
StravaAPICallback<StravaClub> callback)
throws NotFoundException
clubId - Club identifiercallback - The callback to execute on completionNotFoundException - If the club with the given id doesn't existClubService.getClub(java.lang.Integer)@POST(value="/clubs/{id}/join")
StravaClubMembershipResponse joinClub(@Path(value="id")
Integer clubId)
throws NotFoundException
clubId - 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}/join")
void joinClub(@Path(value="id")
Integer clubId,
StravaAPICallback<StravaClubMembershipResponse> callback)
throws NotFoundException
clubId - The club the authenticated athlete wishes to joincallback - The callback to execute on completionNotFoundException - If the club with the given id doesn't existClubService.joinClub(java.lang.Integer)@POST(value="/clubs/{id}/leave")
StravaClubMembershipResponse leaveClub(@Path(value="id")
Integer clubId)
throws NotFoundException
clubId - The club the authenticated athlete wishes to leaveNotFoundException - If the club with the given id doesn't existClubService.leaveClub(java.lang.Integer)@POST(value="/clubs/{id}/leave")
void leaveClub(@Path(value="id")
Integer clubId,
StravaAPICallback<StravaClubMembershipResponse> callback)
throws NotFoundException
clubId - The club the authenticated athlete wishes to leavecallback - The callback to execute on completionNotFoundException - If the club with the given id doesn't existClubService.leaveClub(java.lang.Integer)@GET(value="/athlete/clubs") StravaClub[] listAuthenticatedAthleteClubs()
ClubService.listAuthenticatedAthleteClubs()@GET(value="/athlete/clubs") void listAuthenticatedAthleteClubs(StravaAPICallback<StravaClub[]> callback)
callback - The callback to execute on completionClubService.listAuthenticatedAthleteClubs()@GET(value="/clubs/{id}/admins")
StravaAthlete[] listClubAdmins(@Path(value="id")
Integer clubId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException
clubId - The club for which to list adminspage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)StravaAthletesNotFoundException - if club id is invalid@GET(value="/clubs/{id}/admins")
void listClubAdmins(@Path(value="id")
Integer clubId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage,
StravaAPICallback<StravaAthlete[]> callback)
throws NotFoundException
clubId - The club for which to list adminspage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)callback - Callback used to return the athletesNotFoundException - if club id is invalid@GET(value="/clubs/{id}/announcements")
StravaClubAnnouncement[] listClubAnnouncements(@Path(value="id")
Integer clubId)
throws NotFoundException
clubId - The club for which to list announcementsStravaClubAnnouncementsNotFoundException - If the club does not exist@GET(value="/clubs/{id}/announcements")
void listClubAnnouncements(@Path(value="id")
Integer clubId,
StravaAPICallback<StravaClubAnnouncement[]> callback)
throws NotFoundException
clubId - The club for which to list announcementscallback - The callback to execute on completionNotFoundException - If the club does not exist@GET(value="/clubs/{id}/group_events")
StravaClubEvent[] listClubGroupEvents(@Path(value="id")
Integer clubId)
clubId - Unique id of the club whose events should be listed@GET(value="/clubs/{id}/group_events")
void listClubGroupEvents(@Path(value="id")
Integer clubId,
StravaAPICallback<StravaClubEvent[]> callback)
clubId - Unique id of the club whose events should be listedcallback - The callback to execute on completion@GET(value="/clubs/{id}/members")
StravaAthlete[] listClubMembers(@Path(value="id")
Integer clubId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException,
BadRequestException
clubId - 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 existBadRequestException - If the paging instructions are invalidClubService.listClubMembers(Integer,
javastrava.util.Paging)@GET(value="/clubs/{id}/members")
void listClubMembers(@Path(value="id")
Integer clubId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage,
StravaAPICallback<StravaAthlete[]> callback)
throws NotFoundException,
BadRequestException
clubId - CLub identifierpage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)callback - The callback to execute on completionNotFoundException - If the club with the given id doesn't existBadRequestException - If the paging instructions are invalidClubService.listClubMembers(Integer,
javastrava.util.Paging)@GET(value="/clubs/{id}/activities")
StravaActivity[] listRecentClubActivities(@Path(value="id")
Integer clubId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage)
throws NotFoundException,
BadRequestException
clubId - 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 existBadRequestException - If the paging instructions are invalidClubService.listRecentClubActivities(Integer,
javastrava.util.Paging)@GET(value="/clubs/{id}/activities")
void listRecentClubActivities(@Path(value="id")
Integer clubId,
@Query(value="page")
Integer page,
@Query(value="per_page")
Integer perPage,
StravaAPICallback<StravaActivity[]> callback)
throws NotFoundException,
BadRequestException
clubId - Club identifierpage - Page number to be returned (default is 1)perPage - Page size to be returned (default is 50)callback - The callback to execute on completionNotFoundException - If the club with the given id doesn't existBadRequestException - If the paging instructions are invalidClubService.listRecentClubActivities(Integer,
javastrava.util.Paging)Copyright © 2016 Dan Shannon. All rights reserved.