(I’ve read the relevant posts on here but did not find the answers I seek there)
Hi all,
New to oauth2, building an app that needs to read activity data from Strava. For this, I need activity:read in my permission scope. However, I can only get the “read” scope despite choosing scope arg as “activity:read” or “read, activity:read”. I can see that the token generated only has “read” permission on the API app dashboard on my profile, and I also see an authorization error when I invoke the read activities API. Here is my code:
REDIRECT_URI = "https://localhost:8501"
AUTHORIZE_URL = "https://www.strava.com/oauth/authorize"
TOKEN_URL = "https://www.strava.com/api/v3/oauth/token"
SCOPE = "activity:read"
API_BASE = 'https://www.strava.com/api/v3'
auth_url = f"{AUTHORIZE_URL}?client_id={CLIENT_ID}&redirect_uri={REDIRECT_URI}&response_type=code&scope={SCOPE}"
I exclude the client id and secret of course, and the rest of the code that creates a link on my dashboard to auth_url. This generally works - I get my athlete summary back, but no activity:read permission.
Any help would be appreciated !!