jovandeginste / workout-tracker

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

Strava API Integration #47

Open sidelkins opened 5 months ago

sidelkins commented 5 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 5 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 5 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 5 months ago

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