Skip to content

Latest commit

 

History

History
126 lines (77 loc) · 3.96 KB

AthletesApi.md

File metadata and controls

126 lines (77 loc) · 3.96 KB

\AthletesApi

All URIs are relative to https://www.strava.com/api/v3

Method HTTP request Description
GetLoggedInAthlete Get /athlete Get Authenticated Athlete
GetLoggedInAthleteZones Get /athlete/zones Get Zones
GetStats Get /athletes/{id}/stats Get Athlete Stats
UpdateLoggedInAthlete Put /athlete Update Athlete

GetLoggedInAthlete

DetailedAthlete GetLoggedInAthlete(ctx, ) Get Authenticated Athlete

Returns the currently authenticated athlete. Tokens with profile:read_all scope will receive a detailed athlete representation; all others will receive a summary representation.

Required Parameters

This endpoint does not need any parameter.

Return type

DetailedAthlete

Authorization

strava_oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetLoggedInAthleteZones

Zones GetLoggedInAthleteZones(ctx, ) Get Zones

Returns the the authenticated athlete's heart rate and power zones. Requires profile:read_all.

Required Parameters

This endpoint does not need any parameter.

Return type

Zones

Authorization

strava_oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetStats

ActivityStats GetStats(ctx, id, optional) Get Athlete Stats

Returns the activity stats of an athlete.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 The identifier of the athlete. Must match the authenticated athlete.
optional *GetStatsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a GetStatsOpts struct

Name Type Description Notes

page | optional.Int32| Page number. | perPage | optional.Int32| Number of items per page. Defaults to 30. | [default to 30]

Return type

ActivityStats

Authorization

strava_oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateLoggedInAthlete

DetailedAthlete UpdateLoggedInAthlete(ctx, weight) Update Athlete

Update the currently authenticated athlete. Requires profile:write scope.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
weight float32 The weight of the athlete in kilograms.

Return type

DetailedAthlete

Authorization

strava_oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]