Implements Strava method for fetching activities and adds corresponding vertical #51
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #42
Some constraints with the Strava API:
I also extract the OAuth2 Session GET request call into the base class for generalizability.
Sample response
[ { "resource_state": 2, "athlete": {"id": 111, "resource_state": 1}, "name": "Afternoon Run", "distance": 111, "moving_time": 111, "elapsed_time": 111, "total_elevation_gain": 0.0, "type": "Run", "sport_type": "Run", "workout_type": 0, "id": 14676384061, "start_date": "2025-06-02T20:47:04Z", "start_date_local": "2025-06-02T15:47:04Z", "timezone": "(GMT-06:00) America/Chicago", "utc_offset": -18000.0, "location_city": null, "location_state": null, "location_country": null, "achievement_count": 0, "kudos_count": 1, "comment_count": 0, "athlete_count": 1, "photo_count": 0, "map": { "id": "111", "summary_polyline": "111111111111", "resource_state": 2, }, "trainer": false, "commute": false, "manual": false, "private": false, "visibility": "followers_only", "flagged": false, "gear_id": null, "start_latlng": [111.111, -111.111], "end_latlng": [111.111, -111.111], "average_speed": 111.111, "max_speed": 111.111, "has_heartrate": false, "heartrate_opt_out": false, "display_hide_heartrate_option": false, "elev_high": 111.111, "elev_low": 111.111, "upload_id": 111, "upload_id_str": "111", "external_id": "111-activity.fit", "from_accepted_tag": false, "pr_count": 0, "total_photo_count": 0, "has_kudoed": false, } ]