Strava v0.4.0 Strava.Athlete View Source

Athletes are Strava users, Strava users are athletes.

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

Link to this section Summary

Functions

Retrieve an athlete's followers

Retrieve an athlete's friends

Retrieve details about an athlete by ID

Retrieve details about the current athlete

Retrieve an athlete's totals and stats

Link to this section Types

Link to this type t() View Source
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}

Link to this section Functions

Link to this function followers(id, client \\ Strava.Client.new()) View Source

Retrieve an athlete's followers.

Example

Strava.Athlete.followers(5324239)

More info: http://strava.github.io/api/v3/follow/

Link to this function friends(id, client \\ Strava.Client.new()) View Source

Retrieve an athlete's friends.

Example

Strava.Athlete.friends(5324239)

More info: http://strava.github.io/api/v3/follow/

Link to this function retrieve(id, client \\ Strava.Client.new()) View Source

Retrieve details about an athlete by ID.

Example

Strava.Athlete.retrieve(5324239)

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

Link to this function retrieve_current(client \\ Strava.Client.new()) View Source

Retrieve details about the current athlete.

Example

Strava.Athlete.retrieve_current()

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

Link to this function stats(id, client \\ Strava.Client.new()) View Source

Retrieve an athlete's totals and stats.

Example

Strava.Athlete.stats(5324239)

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