Skip to main content
Solved

get_logged_in_athlete not returning all expected data

  • December 1, 2024
  • 1 reply
  • 74 views

Forum|alt.badge.img+2

I’m calling get_logged_in_athlete in Python using an access token that has the following scope.

scope=read,activity:read,profile:read_all,read_all

The response only returns all the data on the following:

  • ‘bikes’
  • ‘clubs’
  •  'follower_count': 174,
  •  'friend_count': 183,
  •  'ftp': 250,
  •  'measurement_preference': 'meters',
  •  'shoes': [],
  •  'weight': 73.0

If I use the same access token in Postman and hit https://www.strava.com/api/v3/athlete then I get all the profile data I would expect, including the data above.

I’ve seen one similar post on this subject with no real resolution and i’m a bit at a loss on what to do next. 

 

 

 

Best answer by Clashcitywomble

Gave up trying to get the swagger_client to return all the expected data, looks like it should be useful but i’m making some stupid error or my install is broken. 

 

Getting everything I now with a normal GET

 

url = 'https://www.strava.com/api/v3/athlete'
header = {'Authorization': 'Bearer nnnnnnnxxxxxnnnnnnnn'}
data = json.loads(requests.get(url, headers=header).content)

 

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

1 reply

Forum|alt.badge.img+2
  • Author
  • Hub Rookie
  • 3 replies
  • Answer
  • December 5, 2024

Gave up trying to get the swagger_client to return all the expected data, looks like it should be useful but i’m making some stupid error or my install is broken. 

 

Getting everything I now with a normal GET

 

url = 'https://www.strava.com/api/v3/athlete'
header = {'Authorization': 'Bearer nnnnnnnxxxxxnnnnnnnn'}
data = json.loads(requests.get(url, headers=header).content)

 


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