StravaSwift icon indicating copy to clipboard operation
StravaSwift copied to clipboard

How to get the full details of athlete.

Open mohdzakir786 opened this issue 5 years ago • 2 comments

Not able to get list of bike , shoes and clubs I have implement the StravaSwift but not getting details of athlete.

[id: Optional(2808157108) resourceState: Optional(Dirtlej.ResourceState.summary) externalId: nil uploadId: nil athlete: Optional(id: Optional(47192250) resourceState: Optional(Dirtlej.ResourceState.meta) firstname: nil lastname: nil profileMedium: nil profile: nil city: nil state: nil country: nil sex: nil friend: nil follower: nil premium: nil createdAt: nil updatedAt: nil friendCount: nil followerCount: nil mutualFriendCount: nil datePreference: nil measurementPreference: nil email: nil FTP: nil weight: nil clubs: Optional([]) bikes: Optional([]) shoes: Optional([]) )

mohdzakir786 avatar Oct 24 '19 07:10 mohdzakir786

What call are you making to get this response? The resourceState indicates that this is a meta state for the athlete which only shows the Athlete ID (see Object representations in the Strava API documentation). If you want detailed Athlete data you need to make a call to athlete

FleetPhil avatar Oct 24 '19 13:10 FleetPhil

I am also having this issue - when making the call to 'athlete' the [Bike] field returns as empty optional array. Is there any further insights as to how to get past this issue?

KurtisPayne avatar Jan 19 '20 05:01 KurtisPayne