Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.36 KB

GearsApi.md

File metadata and controls

60 lines (39 loc) · 1.36 KB

StravaApiV3.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(id)

Get Equipment

Returns an equipment using its identifier.

Example

var StravaApiV3 = require('strava_api_v3');
var defaultClient = StravaApiV3.ApiClient.instance;

// Configure OAuth2 access token for authorization: strava_oauth
var strava_oauth = defaultClient.authentications['strava_oauth'];
strava_oauth.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new StravaApiV3.GearsApi();

var id = "id_example"; // String | The identifier of the gear.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getGearById(id, callback);

Parameters

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

Return type

DetailedGear

Authorization

strava_oauth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json