Bypassing API 'fromCache'
- Egghead_#8
- Posts: 72
- Joined: Fri Jul 09, 2010 6:51 am
Bypassing API 'fromCache'
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
- FTMSupport
- Site Admin
- Posts: 13193
- Joined: Sat Mar 28, 2009 7:25 pm
Re: Bypassing API 'fromCache'
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
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
- Egghead_#8
- Posts: 72
- Joined: Fri Jul 09, 2010 6:51 am
Re: Bypassing API 'fromCache'
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;).
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;).
- FTMSupport
- Site Admin
- Posts: 13193
- Joined: Sat Mar 28, 2009 7:25 pm
Re: Bypassing API 'fromCache'
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
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
- Egghead_#8
- Posts: 72
- Joined: Fri Jul 09, 2010 6:51 am
Re: Bypassing API 'fromCache'
That's too bad. The API help page led me to believe it could be done.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.
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).
- FTMSupport
- Site Admin
- Posts: 13193
- Joined: Sat Mar 28, 2009 7:25 pm
Re: Bypassing API 'fromCache'
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
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
- Egghead_#8
- Posts: 72
- Joined: Fri Jul 09, 2010 6:51 am
Re: Bypassing API 'fromCache'
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?
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?
