Skip to content

tomislaveric/strava-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StravaSwiftSDK

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!

API Endpoints

Athletes

  • GET /athlete
  • GET /athlete/zones
  • GET /athlete/{id}/stats
  • PUT /athlete

Activities

  • 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}

Segments

... To be done

SegmentEfforts

... To be done

Clubs

... To be done

Gears

... To be done

Routes

... To be done

Uploads

... To be done

Streams

... 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)

Releases

No releases published

Packages

No packages published

Languages