02-22-2023 11:28 AM - edited 02-22-2023 11:36 AM
I am unable to retrieve my activities via my React application, despite using this how-to site for reference and largely copying the code over: https://javascript.plainenglish.io/strava-api-react-app-326e63527e2c. Is this not a valid request link:
Not sure how to interpret this result.
Solved! Go to Solution.
02-25-2023 02:41 PM
It turned out I just didn't have the right refresh token. Once I had that, everything worked as expected and I was able to pull in data to my React app.
02-25-2023 02:41 PM
It turned out I just didn't have the right refresh token. Once I had that, everything worked as expected and I was able to pull in data to my React app.
02-24-2023 06:54 AM
The error message says you don't have read permissions. As part of the oauth flow you pass the requested scopes and the athlete can accept whichever ones they feel are appropriate. See https://developers.strava.com/docs/authentication/#detailsaboutrequestingaccess. The token you acquire will only grant access to the scopes the athlete authorized, so make sure you have either read or read_all
02-24-2023 06:06 AM
The access token does not go in the URL of the GET request, it goes in the 'Authorization' HTTP header of the request.
Read more here
Welcome to the Community - here is your guide to help you get started!