Skip to main content
Answer

Programmatically acquire athlete's authorization code?

  • December 8, 2023
  • 1 reply
  • 14 views

Forum|alt.badge.img+1

I have an app where I would like to get the ytd_run_totals of each member in my club. In order to do this, I understand each club member is supposed to authorize my app to be able to read their data. When the user clicks authorize and the athlete's authorization code is displayed in the proceeding url, is there a way to obtain this code programmatically? Or is the only way to obtain it by having the user communicate this to the developer? 

Best answer by veloek

Your web-server handling the redirect from Strava should process the authorization code (i.e. exchange it for access/refresh tokens) and then redirect the user to your app.

1 reply

Forum|alt.badge.img+6
  • Hub Rookie
  • Answer
  • December 8, 2023

Your web-server handling the redirect from Strava should process the authorization code (i.e. exchange it for access/refresh tokens) and then redirect the user to your app.