All URIs are relative to https://www.strava.com/api/v3
Method | HTTP request | Description |
---|---|---|
getGearById | GET /gear/{id} | Get Equipment |
DetailedGear getGearById(id)
Get Equipment
Returns an equipment using its identifier.
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);
Name | Type | Description | Notes |
---|---|---|---|
id | String | The identifier of the gear. |
- Content-Type: Not defined
- Accept: application/json