Skip to content

Latest commit

 

History

History
74 lines (53 loc) · 1.77 KB

GearsApi.md

File metadata and controls

74 lines (53 loc) · 1.77 KB

Strava.NET.Api.GearsApi

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

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

GetGearById

DetailedGear GetGearById (int? id)

Get Equipment

Returns an equipment using its identifier.

Example

using System;
using System.Diagnostics;
using Strava.NET.Api;
using Strava.NET.Client;
using Strava.NET.Model;

namespace Example
{
    public class GetGearByIdExample
    {
        public void main()
        {
            
            // Configure OAuth2 access token for authorization: strava_oauth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new GearsApi();
            var id = 56;  // int? | The identifier of the gear.

            try
            {
                // Get Equipment
                DetailedGear result = apiInstance.GetGearById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GearsApi.GetGearById: " + e.Message );
            }
        }
    }
}

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]