AthletesApi
All URIs are relative to https://www.strava.com/api/v3
| Method | HTTP request | Description |
|---|---|---|
| getloggedin_athlete | GET /athlete | Get Authenticated Athlete |
| getloggedinathletezones | GET /athlete/zones | Get Zones |
| get_stats | GET /athletes/{id}/stats | Get Athlete Stats |
| updateloggedin_athlete | PUT /athlete | Update Athlete |
getloggedin_athlete
get_logged_in_athlete(api::AthletesApi; _mediaType=nothing) ->DetailedAthlete,OpenAPI.Clients.ApiResponse<br/> `getloggedinathlete(_api::AthletesApi, response_stream::Channel; _mediaType=nothing) ->Channel{DetailedAthlete},OpenAPI.Clients.ApiResponse`
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
Authorization
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
get_logged_in_athlete_zones(api::AthletesApi; _mediaType=nothing) ->Zones,OpenAPI.Clients.ApiResponse<br/> `getloggedinathletezones`(api::AthletesApi, response_stream::Channel; _mediaType=nothing) ->Channel{Zones},OpenAPI.Clients.ApiResponse
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
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_stats
get_stats(api::AthletesApi,id::Int64; _mediaType=nothing) ->ActivityStats,OpenAPI.Clients.ApiResponse<br/> `getstats(_api::AthletesApi, response_stream::Channel,id::Int64; _mediaType=nothing) ->Channel{ActivityStats},OpenAPI.Clients.ApiResponse`
Get Athlete Stats
Returns the activity stats of an athlete. Only includes data from activities set to Everyone visibilty.
Required Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| _api | AthletesApi | API context | |
id | Int64 | The identifier of the athlete. Must match the authenticated athlete. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateloggedin_athlete
update_logged_in_athlete(api::AthletesApi,weight::Float32; _mediaType=nothing) ->DetailedAthlete,OpenAPI.Clients.ApiResponse<br/> `updateloggedinathlete(_api::AthletesApi, response_stream::Channel,weight::Float32; _mediaType=nothing) ->Channel{DetailedAthlete},OpenAPI.Clients.ApiResponse`
Update Athlete
Update the currently authenticated athlete. Requires profile:write scope.
Required Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| _api | AthletesApi | API context | |
weight | Float32 | The weight of the athlete in kilograms. |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]