Strava v0.3.2 Strava.Athlete

Athletes are Strava users, Strava users are athletes.

More info: https://strava.github.io/api/v3/athlete/

Summary

Functions

Retrieve details about an athlete by ID

Retrieve details about the current athlete

Retrieve an athlete's totals and stats

Types

t()
t() :: %Strava.Athlete{athlete_type: String.t, bikes: [map], city: String.t, clubs: [Strava.Club.Summary.t], country: String.t, created_at: NaiveDateTime.t | String.t, date_preference: String.t, email: String.t, firstname: String.t, follower: String.t, follower_count: integer, friend: String.t, friend_count: integer, ftp: integer, id: integer, lastname: String.t, measurement_preference: String.t, mutual_friend_count: integer, premium: boolean, profile: String.t, profile_medium: String.t, resource_state: integer, sex: String.t, shoes: [map], state: String.t, updated_at: NaiveDateTime.t | String.t, weight: float}

Functions

parse(athlete)
retrieve(id, client \\ Strava.Client.new())

Retrieve details about an athlete by ID.

Example

Strava.Athlete.retrieve(5324239)

More info: http://strava.github.io/api/v3/athlete/#get-another-details

retrieve_current(client \\ Strava.Client.new())

Retrieve details about the current athlete.

Example

Strava.Athlete.retrieve_current()

More info: http://strava.github.io/api/v3/athlete/#get-details

stats(id, client \\ Strava.Client.new())

Retrieve an athlete's totals and stats.

Example

Strava.Athlete.stats(5324239)

More info: http://strava.github.io/api/v3/athlete/#stats