public interface ClubService extends StravaService
StravaClub related services
Clubs represent groups of athletes on Strava. They can be public or private.
Only members of private clubs can access their details.
The object is returned in summary or detailed representations.
| Modifier and Type | Method and Description |
|---|---|
StravaClub |
getClub(Integer id)
Retrieve details about a specific
club. |
StravaClubMembershipResponse |
joinClub(Integer id)
Join a club on behalf of the authenticated user.
|
StravaClubMembershipResponse |
leaveClub(Integer id)
Leave a club on behalf of the authenticated user.
|
List<StravaAthlete> |
listAllClubMembers(Integer clubId)
Convenience method for returning ALL of the members of a club
|
List<StravaActivity> |
listAllRecentClubActivities(Integer clubId)
|
List<StravaClub> |
listAuthenticatedAthleteClubs()
|
List<StravaAthlete> |
listClubMembers(Integer id)
|
List<StravaAthlete> |
listClubMembers(Integer id,
Paging pagingInstruction)
|
List<StravaActivity> |
listRecentClubActivities(Integer id)
|
List<StravaActivity> |
listRecentClubActivities(Integer id,
Paging pagingInstruction)
|
StravaClub getClub(Integer id)
Retrieve details about a specific club. The club must be public or the current athlete must be a member.
Returns null if club with the given id does not exist
Returns an empty club (with only the id set) if the club is private and the authenticated athlete is not a member
URL GET https://www.strava.com/api/v3/clubs/:id
id - The id of the StravaClub to be retrievedList<StravaClub> listAuthenticatedAthleteClubs()
Fetch an array of clubs that the currently authenticated athlete is a member of.
Pagination is not supported. Returns all clubs of which the athlete is a member.
URL GET https://www.strava.com/api/v3/athlete/clubs
club summary representations.List<StravaAthlete> listClubMembers(Integer id)
Retrieve summary information about member athletes of a specific club.
Pagination is not supported. Returns only the first page of members.
Returns null if club with the given id does not exist
Returns an empty list if the club is private
URL GET https://www.strava.com/api/v3/clubs/:id/members
id - The id of the StravaClub whose member athletes should be returnedathlete summary representations.List<StravaAthlete> listClubMembers(Integer id, Paging pagingInstruction)
Retrieve summary information about member athletes of a specific club.
Pagination is supported.
Returns null if club with the given id does not exist
Returns an empty list if the club is private
URL GET https://www.strava.com/api/v3/clubs/:id/members
id - The id of the StravaClub whose member athletes should be returnedpagingInstruction - (Optional) The page to be returnedathlete summary representations.List<StravaActivity> listRecentClubActivities(Integer id)
Retrieve the recent activities performed by member athletes of a specific club.
The authenticated athlete must be a member of the club.
Pagination is NOT supported. Returns only the first page of activities.
Returns null if club with the given id does not exist
Returns an empty list if the authorised athlete is not a member of the club
id - The id of the StravaClub for which recent activities are to be returned.activity summary representations.List<StravaActivity> listRecentClubActivities(Integer id, Paging pagingInstruction)
Retrieve the recent activities performed by member athletes of a specific club.
The authenticated athlete must be a member of the club.
Returns null if club with the given id does not exist
Returns an empty list if the authorised athlete is not a member of the club
Pagination is supported. However, the results are limited to the last 200 total activities by club members.
id - The id of the StravaClub for which recent activities are to be returned.pagingInstruction - (Optional) The page to be returnedactivity summary representations.StravaClubMembershipResponse joinClub(Integer id)
Join a club on behalf of the authenticated user. An access token with write permissions is required.
id - ID of the StravaClub to joinStravaClubMembershipResponse leaveClub(Integer id)
Leave a club on behalf of the authenticated user. An access token with write permissions is required.
id - ID of the club to joinList<StravaAthlete> listAllClubMembers(Integer clubId)
Convenience method for returning ALL of the members of a club
Returns ALL the members, regardless of how many there are
Pagination is NOT supported.
USE WITH CAUTION - CLUBS WITH MANY MEMBERS WILL REQUIRE MANY CALLS TO THE STRAVA API
Returns null if club with the given id does not exist
Returns an empty list if the club is private
URL GET https://www.strava.com/api/v3/clubs/:id/members
clubId - The id of the StravaClub whose member athletes should be returnedathlete summary representations.List<StravaActivity> listAllRecentClubActivities(Integer clubId)
Retrieve ALL the recent activities performed by member athletes of a specific club.
The authenticated athlete must be a member of the club.
Returns null if club with the given id does not exist
Returns an empty list if the authorised athlete is not a member of the club
Pagination is supported. However, the results are limited to the last 200 total activities by club members.
clubId - The id of the StravaClub for which recent activities are to be returned.activity summary representations.Copyright © 2015 Dan Shannon. All rights reserved.