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 |
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.
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Zones GetLoggedInAthleteZones(ctx, ) Get Zones
Returns the the authenticated athlete's heart rate and power zones. Requires profile:read_all.
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ActivityStats GetStats(ctx, id, optional) Get Athlete Stats
Returns the activity stats of an athlete.
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 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]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DetailedAthlete UpdateLoggedInAthlete(ctx, weight) Update Athlete
Update the currently authenticated athlete. Requires profile:write scope.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
weight | float32 | The weight of the athlete in kilograms. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]