The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
09-23-2023 09:05 PM - edited 09-23-2023 09:12 PM
Hello,
I assume I'm making a newbie mistake, but can't seem to see where the issue lies.
1. I made a successful request to https://www.strava.com/api/v3/oauth/token
where I receive the following response
{
token_type: 'Bearer',
expires_at: 1695548372,
expires_in: 20715,
refresh_token: '123abc', // replacing real values
access_token: '456def', // replacing real values
athlete: {
id: ...,
}
}
2. I then take the access_token to get activity like:
curl https://www.strava.com/api/v3/athlete/activities -H “Authorization: Bearer 456def”
where I then get the following error:
{"message":"Authorization Error","errors":[{"resource":"Athlete","field":"access_token","code":"invalid"}]}curl: (6) Could not resolve host: Bearer
curl: (6) Could not resolve host: 456def”
I also have a follow up question, what is the difference between the access token I recieve when authorizing via OAuth (above query) and the access token I have in my developer settings on my Strava developer profile?
09-23-2023 09:28 PM - edited 09-23-2023 09:32 PM
Update: I can make the call with the following:
Welcome to the Community - here is your guide to help you get started!