Strava v0.4.1 Strava.Activity View Source
Activities are the base object for Strava runs, rides, swims etc.
More info: https://strava.github.io/api/v3/activities/
Link to this section Summary
Functions
Retrieve a list of activities for the authenticated user. Pagination is supported
Parse the athlete, dates, photos and segment efforts in the activity
Retrieve details about a specific activity
Link to this section Types
Link to this type
t()
View Source
t() :: %Strava.Activity{max_watts: integer(), achievement_count: integer(), best_efforts: [map()], has_kudoed: boolean(), splits_standard: [map()], suffer_score: integer(), id: integer(), commute: boolean(), kudos_count: integer(), athlete: Strava.Athlete.Meta.t(), photos: Strava.Activity.Photo.Summary.t() | nil, flagged: boolean(), average_cadence: float(), device_name: String.t(), kilojoules: float(), calories: float(), has_heartrate: boolean(), start_latlng: [number()], external_id: String.t(), total_photo_count: integer(), trainer: boolean(), average_heartrate: float(), weighted_average_watts: integer(), average_speed: float(), upload_id: integer(), end_latlng: [number()], gear_id: String.t(), athlete_count: integer(), elapsed_time: integer(), comment_count: integer(), splits_metric: [map()], gear: map(), segment_efforts: [Strava.SegmentEffort.t()] | nil, start_date: NaiveDateTime.t() | String.t(), resource_state: integer(), max_heartrate: integer(), manual: boolean(), device_watts: boolean(), map: map(), private: boolean(), elev_high: float(), description: String.t(), workout_type: integer(), timezone: String.t(), start_date_local: NaiveDateTime.t() | String.t(), total_elevation_gain: float(), distance: float(), max_speed: float(), average_temp: float(), moving_time: integer(), name: String.t(), photo_count: integer(), average_watts: float(), elev_low: float(), type: String.t(), embed_token: String.t()}
Link to this section Functions
Link to this function
list_athlete_activities(pagination, filters \\ %{}, client \\ Strava.Client.new())
View Source
list_athlete_activities(Strava.Pagination.t(), map(), Strava.Client.t()) :: [Strava.Activity.t()]
Retrieve a list of activities for the authenticated user. Pagination is supported.
Example
activities = Strava.Activity.list_athlete_activities(%Strava.Pagination{per_page: 200, page: 1})
activities = Strava.Activity.list_athlete_activities(%Strava.Pagination{per_page: 200, page: 1}, Strava.Client.new("<access_token>>"))
activities = Strava.Activity.list_athlete_activities(%Strava.Pagination{per_page: 200, page: 1}, {before: "2017-04-20T00:00:12Z"})
More info: https://strava.github.io/api/v3/activities/#get-activities
Parse the athlete, dates, photos and segment efforts in the activity