Skip to main content
Question

API Doc Correction: Update authentication docs


Forum|alt.badge.img

Hey!

I was working on a small app last week using the developer docs and was wondering if you could make a correction. The docs suggest that the tokens received for accessing resources are bearer tokens meant to be posted as headers when requesting resources however in practice (at least for the `/athlete/activities` endpoint) the v3 api expects the access_token to be sent as a query parameter. Is there any chance the docs could be updated to reflect this or at least clarify that different resources require different forms of access tokens? What was especially confusing is that when I went through the redirect flow the token was explicitly listed as `token_type: Bearer` which was not correct.

2 replies

Jan_Mantau
Superuser
Forum|alt.badge.img+26
  • Superuser
  • 895 replies
  • January 3, 2023

I'm using athlete/activities with the bearer token in the header and I'm convinced everbody else does too. Maybe you have just found an additional way with the query parameter, I didn't have tested that.


Forum|alt.badge.img
  • Author
  • Hub Rookie
  • 1 reply
  • January 3, 2023

@Jan_Mantau interesting... I can go back and generate the error I was getting while trying to pass the token in the header if that would help clarify things


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings