Bypassing API 'fromCache'

We will try and answer Questions in this forum. If you are having any issues with iScore Baseball, this is probably the best place to start. You can also search historical posts here.
Post Reply
User avatar
Egghead_#8
Posts: 72
Joined: Fri Jul 09, 2010 6:51 am

Bypassing API 'fromCache'

Post by Egghead_#8 » Mon Apr 29, 2013 1:22 pm

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

Re: Bypassing API 'fromCache'

Post by FTMSupport » Mon Apr 29, 2013 1:24 pm

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.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
User avatar
Egghead_#8
Posts: 72
Joined: Fri Jul 09, 2010 6:51 am

Re: Bypassing API 'fromCache'

Post by Egghead_#8 » Mon Apr 29, 2013 1:32 pm

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

Re: Bypassing API 'fromCache'

Post by FTMSupport » Mon Apr 29, 2013 2:11 pm

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.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
User avatar
Egghead_#8
Posts: 72
Joined: Fri Jul 09, 2010 6:51 am

Re: Bypassing API 'fromCache'

Post by Egghead_#8 » Mon Apr 29, 2013 2:30 pm

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

Re: Bypassing API 'fromCache'

Post by FTMSupport » Mon Apr 29, 2013 2:33 pm

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.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
User avatar
Egghead_#8
Posts: 72
Joined: Fri Jul 09, 2010 6:51 am

Re: Bypassing API 'fromCache'

Post by Egghead_#8 » Mon Apr 29, 2013 2:49 pm

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?
Post Reply