All URIs are relative to https://www.strava.com/api/v3
Method | HTTP request | Description |
---|---|---|
get_running_race_by_id | GET /running_races/{id} | Get Running Race |
get_running_races | GET /running_races | List Running Races |
RunningRace get_running_race_by_id(id)
Get Running Race
Returns a running race for a given identifier.
from __future__ import print_function
import time
import strava_api_v3
from strava_api_v3.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: strava_oauth
configuration = strava_api_v3.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = strava_api_v3.RunningRacesApi(strava_api_v3.ApiClient(configuration))
id = 56 # int | The identifier of the running race.
try:
# Get Running Race
api_response = api_instance.get_running_race_by_id(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling RunningRacesApi->get_running_race_by_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the running race. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[RunningRace] get_running_races(year=year)
List Running Races
Returns a list running races based on a set of search criteria.
from __future__ import print_function
import time
import strava_api_v3
from strava_api_v3.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: strava_oauth
configuration = strava_api_v3.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = strava_api_v3.RunningRacesApi(strava_api_v3.ApiClient(configuration))
year = 56 # int | Filters the list by a given year. (optional)
try:
# List Running Races
api_response = api_instance.get_running_races(year=year)
pprint(api_response)
except ApiException as e:
print("Exception when calling RunningRacesApi->get_running_races: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
year | int | Filters the list by a given year. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]