jovandeginste / workout-tracker

A workout tracking web application for personal use (or family, friends), geared towards running and other GPX-based activities
Other
967 stars 30 forks source link

Strava API Integration #47

Open sidelkins opened 8 months ago

sidelkins commented 8 months ago

Would be awesome to be able to connect to the Strava API to sync my workouts from there. Other workout apps would be awesome too. Loving the project so far!

jovandeginste commented 7 months ago

This seems easy to add: https://developers.strava.com/docs/reference/#api-Routes-getRouteAsGPX

I don't have a Strava account myself, so may take a while until I get to do this myself...

jovandeginste commented 7 months ago

So I bit the bullet, created an account, uploaded some GPX files, registered a "API application"; now I can fetch my own information (/api/v3/athlete endpoint), but anything else seems to give Authorization Error; eg.:

GET /api/v3/athlete/activities

{
  "message": "Authorization Error",
  "errors": [
    {
      "resource": "AccessToken",
      "field": "activity:read_permission",
      "code": "missing"
    }
  ]
}
jovandeginste commented 7 months ago

Basically, I need to implement the full OAuth workflow; not gonna be ready tomorrow :)

Dieterbe commented 5 days ago

strava has new T&C on their api, preventing any app doing analysis on data pulled from their api. see https://communityhub.strava.com/developers-api-7/api-agreement-update-how-data-appears-on-3rd-party-apps-7636