Skip to main content

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. 

 

 

 

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