CHPP Development/XML/live

From Hattrick
Revision as of 22:00, 21 February 2006 by 82.151.169.165 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Current version of the XML output is 1.2

actionType
Indicates what type of action the page should perform:

Value Default Description
view Yes Show

the latest event(s) for all tracked matches. If matchID is supplied, that match will be shown with all events since the start of the game

("expanded" view).
viewNew Show

those matches where new events have occured since last request of the page. All the events that have taken place since last request will be

shown.
viewAll Show all the events for all matches. Only available with outputType = XML.
clearAll Remove all tracked matches from the tracking session.
addMatch Add a new match to be tracked. With this actionType, a matchID must be supplied.

(Note that matchID works as normal, so the new match will automatically be in "expanded" mode). If outputType = XML, the output will be identical to viewAll.

deleteMatch Remove a particular match from the session. With this actionType, a matchID must be supplied.



matchID
Specifies that a certain match should be shown as "expanded", that is, all the events are shown rather than only the latest. This parameter is required for certain actionTypes (see specification for actionType parameter).