Skip to main content
Solved

Can't authenticate first login request

  • May 3, 2023
  • 1 reply
  • 21 views

Forum|alt.badge.img
import requests

def get_strava_profile(access_token😞
headers = {"Authorization": f"Bearer {access_token}"}
 
response = requests.get(url, headers=headers)
 
if response.status_code == 200:
return response.json()
else:
print(f"Error: {response.status_code}")
return None

if __name__ == "__main__":
access_token = "YOURACCESSTOKEN"
profile_data = get_strava_profile(access_token)
 
if profile_data:
print(profile_data)

get_strava_profile('')


How do I get this working? I get a 401 error

Best answer by SkippyVasquez

Hey Straver123,

Thanks for the post. Are you still experiencing this issue? You can always refer to Strava's authentication doc.

 

View original
Did this topic help you find an answer to your question?

1 reply

SkippyVasquez
Strava
Forum|alt.badge.img+21

Hey Straver123,

Thanks for the post. Are you still experiencing this issue? You can always refer to Strava's authentication doc.

 


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