Strava v1.0.0 Strava.Gears View Source

API calls for all endpoints tagged Gears.

Link to this section Summary

Functions

Get Equipment Returns an equipment using its identifier

Link to this section Functions

Link to this function

get_gear_by_id(client, id, opts \\ []) View Source
get_gear_by_id(Tesla.Env.client(), integer(), keyword()) ::
  {:ok, Strava.DetailedGear.t()} | {:error, Tesla.Env.t()}

Get Equipment Returns an equipment using its identifier.

Parameters

  • client (Strava.Client): Client to make authenticated requests
  • id (integer()): The identifier of the gear.
  • opts (KeywordList): [optional] Optional parameters

Returns

{:ok, %Strava.DetailedGear{}} on success {:error, info} on failure