API League/Game Enhancement

If you have an idea for improving the product, please post it here and we will try and prioritize updates based on the most popular requests.
Post Reply
User avatar
CSThunderCoach
Posts: 263
Joined: Thu Mar 04, 2010 8:55 am
Location: Colorado Springs, CO

API League/Game Enhancement

Post by CSThunderCoach » Wed May 23, 2012 12:19 pm

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
User avatar
FTMSupport
Site Admin
Posts: 13193
Joined: Sat Mar 28, 2009 7:25 pm

Re: API League/Game Enhancement

Post by FTMSupport » Thu May 24, 2012 1:20 am

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.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
Post Reply