Page 1 of 1

API League/Game Enhancement

Posted: Wed May 23, 2012 12:19 pm
by CSThunderCoach
Could you modify the leagues.php and games.php to include game and league information respectively.
Looking for something like this:

<LEAGUES ...>
<LEAGUE gameCount="3" guid="..." ...>
<GAME guid="...">
<GAME guid="...">
<GAME guid="...">
</LEAGUE>
</LEAGUES>

and

<TEAM guid="..." ...>
<GAME guid="..." ...>
<LEAGUE guid="..." ... >
<LEAGUE guid="..." ... >
</GAME>
</TEAM>

OR provide a "&games=" filter on the leagues.php API call. I am trying to find the games that are not associated to the correct leagues. I can get all the leagues and get all the games, but I can only cross reference one way (by passing league GUID to games.php.
I would like to pass a game GUID to leagues.php and get the list of leagues that game belongs to.

Thanks

Re: API League/Game Enhancement

Posted: Thu May 24, 2012 1:20 am
by FTMSupport
You can pass a lg= filter to the games.php call to get just games in a certain league or a comma separated list of leagues to get the games for a subset of leagues.