Page 1 of 1
Bypassing API 'fromCache'
Posted: Mon Apr 29, 2013 1:22 pm
by Egghead_#8
Is there a way to force the API to make a new pull instead of from cache? Not getting new results gets frustrating as I'm trying to learn to parse the API's dataset
Re: Bypassing API 'fromCache'
Posted: Mon Apr 29, 2013 1:24 pm
by FTMSupport
Do an Export from your device to clear the cache. Data only changes when you export so the cached result will be the same as a non cached result until your next export.
Re: Bypassing API 'fromCache'
Posted: Mon Apr 29, 2013 1:32 pm
by Egghead_#8
Gotcha thanks! Sorry guess I was misunderstanding that piece.
Another issue then is I run 2 team websites off the same account. When I use the
http://api.iscoresports.com/teamwebsite/leagues.php" onclick="window.open(this.href);return false; call for either team I get the same combined list of leagues. Even though I use the 't=________' it still pulls all of the leagues, not the ones specific to that team. What am I missing here? Both teams have separate team websites which both filter the leagues correctly when looking at games & statistics. If I specify a team it should only pull leagues for that team, not every league for my customerId.
I'm having to use the API to pull the games for each team and display results and the iScorecast link. I'm having to go this route because there is some concerns with showing the other links (boxscore, play-by-play, etc) that comes with using the feed from the team website (
http://iscorebaseball.com/games.php?t=_________" onclick="window.open(this.href);return false;).
Re: Bypassing API 'fromCache'
Posted: Mon Apr 29, 2013 2:11 pm
by FTMSupport
The leagues.php call will return all the leagues you have defined on your device. It does not limit the leagues to the ones assigned to your team.
Re: Bypassing API 'fromCache'
Posted: Mon Apr 29, 2013 2:30 pm
by Egghead_#8
FTMSupport wrote:The leagues.php call will return all the leagues you have defined on your device. It does not limit the leagues to the ones assigned to your team.
That's too bad. The API help page led me to believe it could be done.
Get Game Listing
To retrieve a Game Listing for a team website, use the following call (replacing the parameters with the appropriate values for the Team Website you are retrieving data for).
Re: Bypassing API 'fromCache'
Posted: Mon Apr 29, 2013 2:33 pm
by FTMSupport
You can get a list of games for just one team, or the games for just a particular league with the API calls, but the League listing returned is going to be all leagues on your device.
Re: Bypassing API 'fromCache'
Posted: Mon Apr 29, 2013 2:49 pm
by Egghead_#8
Apologies in a hurry and copy/pasted the wrong section.
Get Leagues
Retrieves the set of Leagues a team is a member of. Leagues allow filtering of statistics calls to summarize only games that took place in a partcular league.
Maybe it could be added to an enhancement list?
Anyways I'm still working on the API calls and how to secure the calls because of the need to pass in the password in the URL. Guess that's a reason not to make the calls live but rather pull data into a MySQL db and then live pull off that?