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

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 at: https://strava.github.io/api/v3/activities/#get-details