CHPP Development/XML/leagueDetails
From Hattrick
CHPP Documentation - leagueDetails.asp
This page offers XML and HTML interfaces to see data about a LeagueLevelUnit (in the vernacular known as a "series" or even "league"). The XML interface enables CHPP developers to integrate series data viewing into their applications.
Current version
Current version of the XML output is 1.1
Syntax
leagueDetails.asp?
outputType = {HTML | XML}
actionType = {view}
[leagueLevelUnitID = integer]
Indata parameters
outputType
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.
actionType
Indicates what type of action the page should perform.
| Value | Default | Description |
|---|---|---|
| view | Yes | Get the LeaguelevelUnit data. |
leagueLevelUnitID
Specifies the "series" (leagueLevelUnit) that you are looking for data on. If not specified, it defaults to the LeaguelevelUnitID of the team of the currently logged on user.
Outdata parameters
The XML output can contain the following tags/containers:
HattrickData
Generic tag wrapped around all XML data from Hattrick.
FileName (Within HattrickData)
The name of the file that your request was sent to.
UserID (Within HattrickData)
The logged on User's UserID (not to be confused with TeamID). If not logged on, it defaults to 0.
Version (Within HattrickData)
The current version number of the XML output.
FetchedDate (Within HattrickData)
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.
LeagueID (Within HattrickData)
The ID number of the League (for instance Sverige, USA, England...) that this LeaguelevelUnit is part of.
LeagueName (Within HattrickData)
The name of the League (for instance Sverige, USA, England...) that this LeaguelevelUnit is part of.
LeagueLevel (Within HattrickData)
Indicates the division/level this LeaguelevelUnit is located on. 1 is the top division, the second best is 2 and so on.
MaxLevel (Within HattrickData)
How many divisions/levels there are in this league.
LeagueLevelUnitID (Within HattrickData)
The ID number of the LeagueLevelUnit.
LeagueLevelUnitName (Within HattrickData)
The name of the LeagueLevelUnit.
Team (Within HattrickData)
Container for the data for a certain event. An attribute named Index exists as a counter.
TeamID (Within Team)
The globally unique team indentifier.
Position (Within Team)
Position in the table.
TeamName (Within Team)
The team's full name.
Matches (Within Team)
How many matches the team has played.
GoalsFor (Within Team)
How many goals the team has scored.
GoalsAgainst (Within Team)
How many goals the team has allowed their opponents to score.
Points (Within Team)
How many points the team has.
