Skip to content

Possible to create a player class from the pick class from draft picks? #506

Answered by cwendt94
ntellakula asked this question in ESPN API
Discussion options

You must be logged in to vote

So the draft API response only gives that information back. There are two ways you then could map that player to a player class. One the draft does have the Team class associated with it so you could filter through the team roster and find the player matching the playerId. However if that player is no longer on the Team it could be an issue, so you could use the league.player_info(playerId='123') and pass the playerId from the draft. That will return the player class.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ntellakula
Comment options

Answer selected by ntellakula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants