This is an !unofficial & WIP! easy to use StravaSDK written in Swift for iOS and macOS. It uses async/await for the requests. It handles the OAuth authentication with another swift package i wrote (OAuth). It will have all API endpoints implemented and all models.
In the beginning i just wanted to use two Strava endpoints for my fun side project, but now i ended up implementing the whole API :). If you would like to contribute, i would really appreciate it!
-
GET /athlete
-
GET /athlete/zones
-
GET /athlete/{id}/stats
-
PUT /athlete
-
GET /athlete/activities
-
GET /activities/{id}
-
GET /activities/{id}/zones
-
GET /activities/{id}/laps
-
GET /activities/{id}/comments
-
GET /activities/{id}/kudos
-
POST /activities
-
PUT /activities/{id}
... To be done
... To be done
... To be done
... To be done
... To be done
... To be done
... To be done
Currently added Strava API Models
- Lap
- MetaActivity
- MetaAthlete
- PhotosSummary
- PolylineMap
- Split
- SportType
- SummaryGear
- SummaryPRSegmentEffort
- SummarySegment
- SummarySegmentEffort
- DetailedSegmentEffort
- SummaryClub
- DetailedActivity
- DetailedAthlete
- ActivityZone
- TimedZoneRange
- LatLng (Implemented as Double array)
- Comment
- SummaryAthlete
- Kudo
- ActivityStats
- ActivityTotal
- HeartRateZoneRanges
- ZoneRange
- ZoneRanges
- Zones
- PowerZoneRanges
- BaseStream
- Error
- ExplorerResponse
- ExplorerSegment
- Fault
- MetaClub
- PhotosSummary_primary
- Route
- StreamSet
- TimedZoneDistribution
- UpdatableActivity
- Upload
- AltitudeStream
- CadenceStream
- DetailedGear
- DetailedSegment
- DistanceStream
- HeartrateStream
- LatLngStream
- MovingStream
- PowerStream
- SmoothGradeStream
- SmoothVelocityStream
- SummaryActivity
- TemperatureStream
- TimeStream
- DetailedClub
- ActivityType -> (Deprecated)