Strava v0.5.0 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{resource_state: integer(), kudos_count: integer(), id: integer(), splits_metric: [map()], athlete: Strava.Athlete.Meta.t(), elev_high: float(), average_heartrate: float(), device_name: String.t(), segment_efforts: [Strava.SegmentEffort.t()] | nil, external_id: String.t(), average_cadence: float(), distance: float(), manual: boolean(), max_heartrate: integer(), description: String.t(), best_efforts: [map()], device_watts: boolean(), embed_token: String.t(), max_watts: integer(), comment_count: integer(), has_kudoed: boolean(), workout_type: integer(), start_date_local: NaiveDateTime.t() | String.t(), start_latlng: [number()], upload_id: integer(), athlete_count: integer(), average_temp: float(), total_elevation_gain: float(), kilojoules: float(), end_latlng: [number()], calories: float(), map: map(), gear: map(), private: boolean(), photo_count: integer(), photos: Strava.Activity.Photo.Summary.t() | nil, average_speed: float(), weighted_average_watts: integer(), commute: boolean(), average_watts: float(), moving_time: integer(), elapsed_time: integer(), timezone: String.t(), suffer_score: integer(), achievement_count: integer(), start_date: NaiveDateTime.t() | String.t(), flagged: boolean(), max_speed: float(), total_photo_count: integer(), name: String.t(), type: String.t(), elev_low: float(), trainer: boolean(), gear_id: String.t(), splits_standard: [map()], has_heartrate: boolean()}
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