Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.57 KB

GearsApi.md

File metadata and controls

61 lines (41 loc) · 1.57 KB

strava_api_v3.GearsApi

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

Method HTTP request Description
get_gear_by_id GET /gear/{id} Get Equipment

get_gear_by_id

DetailedGear get_gear_by_id(id)

Get Equipment

Returns an equipment using its identifier.

Example

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.GearsApi(strava_api_v3.ApiClient(configuration))
id = 56 # int | The identifier of the gear.

try:
    # Get Equipment
    api_response = api_instance.get_gear_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GearsApi->get_gear_by_id: %s\n" % e)

Parameters

Name Type Description Notes
id int The identifier of the gear.

Return type

DetailedGear

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]