Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the full details of athlete. #22

Open
mohdzakir786 opened this issue Oct 24, 2019 · 2 comments
Open

How to get the full details of athlete. #22

mohdzakir786 opened this issue Oct 24, 2019 · 2 comments

Comments

@mohdzakir786
Copy link

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([])
)

@FleetPhil
Copy link
Contributor

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

@KurtisPayne
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants