Interface IClubsApi
- Namespace
- Tudormobile.Strava.Api
- Assembly
- Tudormobile.Strava.dll
Strava V3 Clubs API Interface.
public interface IClubsApi : IStravaApi
- Inherited Members
Methods
GetClubAsync(long, CancellationToken)
Returns a given a club using its identifier.
Task<ApiResult<DetailedClub>> GetClubAsync(long id, CancellationToken cancellationToken = default)
Parameters
idlongThe identifier of the club.
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ApiResult<DetailedClub>>
The club's detailed representation. An instance of DetailedClub.
ListAthleteClubsAsync(int?, int?, CancellationToken)
Returns the clubs that the currently authenticated athlete is a member of.
Task<ApiResult<List<SummaryClub>>> ListAthleteClubsAsync(int? page = null, int? perPage = null, CancellationToken cancellationToken = default)
Parameters
pageint?Page number (optional).
perPageint?Number of items per page (optional).
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ApiResult<List<SummaryClub>>>
A list of clubs. An instance of ApiResult<T> where T is List<T>.
ListClubActivitiesAsync(long, int?, int?, CancellationToken)
Returns the activities of a given club using its identifier.
Task<ApiResult<List<ClubActivity>>> ListClubActivitiesAsync(long id, int? page = null, int? perPage = null, CancellationToken cancellationToken = default)
Parameters
idlongThe identifier of the club.
pageint?Page number (optional).
perPageint?Number of items per page (optional).
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ApiResult<List<ClubActivity>>>
A list of club activities. An instance of ApiResult<T> where T is List<T>.
ListClubAdministratorsAsync(long, int?, int?, CancellationToken)
Returns the administrators of a given club using its identifier.
Task<ApiResult<List<SummaryAthlete>>> ListClubAdministratorsAsync(long id, int? page = null, int? perPage = null, CancellationToken cancellationToken = default)
Parameters
idlongThe identifier of the club.
pageint?Page number (optional).
perPageint?Number of items per page (optional).
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ApiResult<List<SummaryAthlete>>>
A list of club administrators. An instance of ApiResult<T> where T is List<T>.
ListClubMembersAsync(long, int?, int?, CancellationToken)
Returns the athletes of a given club using its identifier.
Task<ApiResult<List<ClubAthlete>>> ListClubMembersAsync(long id, int? page = null, int? perPage = null, CancellationToken cancellationToken = default)
Parameters
idlongThe identifier of the club.
pageint?Page number (optional).
perPageint?Number of items per page (optional).
cancellationTokenCancellationTokenA token to monitor for cancellation requests.
Returns
- Task<ApiResult<List<ClubAthlete>>>
A list of club athletes. An instance of ApiResult<T> where T is List<T>.