This section describes the two methods that are used to retrieve either a specific player data or a list of players for a specific team.
GetPlayersByTeam
Request data using either the numeric ID of the team or the name (string) of the team - similar to other methods.
GetPlayerById
Use numeric ID of the specific player you want to retrieve data from.
Example of XML Player object:
<Player> | |
<Id>1422</Id> | |
<Name>Ryan Bertrand </Name> | |
<Height>1.78</Height> | |
<Weight>63.49</Weight> | |
<Nationality>England</Nationality> | |
<Position>Defender</Position> | |
<Team_Id>15</Team_Id> | |
<PlayerNumber>23</PlayerNumber> | |
<DateOfBirth>1989-08-05T00:00:00-07:00</DateOfBirth> | |
<DateOfSigning>2006-07-01T00:00:00-07:00</DateOfSigning> | |
<Signing>Trainee</Signing> | |
</Player> |
- The PlayerDetails for livescore data is not mapped to these ID's right now. A solution is being worked on -- until then, use these methods for squad details only.
2 Comments