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

Functions

parse(activity)

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

retrieve(id, client \\ Strava.Client.new())

Retrieve details about a specific activity.

Example

Strava.Activity.retrieve(746805584)

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