Strava v0.2.1 Strava.Activity

Activities are the base object for Strava runs, rides, swims etc.

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

Summary

Functions

Parse the athlete, dates, photos and segment efforts in the activity

Retrieve details about a specific activity

Types

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

Functions

parse(activity)

Parse the athlete, dates, photos and segment efforts in the activity

retrieve(id)
retrieve(integer) :: Strava.Activity.t

Retrieve details about a specific activity.

Example

Strava.Activity.retrieve(746805584)

More info: https://strava.github.io/api/v3/activities/#get-details