API Availability ??
-
- Posts: 7262
- Joined: Wed Apr 04, 2007 10:29 am
- Location: Cove, Hampshire, England.
API Availability ??
Carl,
Are you planning to allow any APIs to hook into the system?
I'd like to do some HTTP POSTs and GETs maybe?
What do you think?
John
Are you planning to allow any APIs to hook into the system?
I'd like to do some HTTP POSTs and GETs maybe?
What do you think?
John
British Chess News : britishchessnews.com
Twitter: @BritishChess
Facebook: facebook.com/groups/britishchess
Twitter: @BritishChess
Facebook: facebook.com/groups/britishchess
-
- Posts: 6028
- Joined: Fri Dec 08, 2006 8:05 pm
- Location: Evesham
Re: API Availability ??
I could do I suppose - what do you want to do exactly?John Upham wrote:Carl,
Are you planning to allow any APIs to hook into the system?
I'd like to do some HTTP POSTs and GETs maybe?
What do you think?
John
Cheers
Carl Hibbard
Carl Hibbard
-
- Posts: 7262
- Joined: Wed Apr 04, 2007 10:29 am
- Location: Cove, Hampshire, England.
-
- Posts: 6028
- Joined: Fri Dec 08, 2006 8:05 pm
- Location: Evesham
-
- Posts: 36
- Joined: Fri Oct 24, 2008 10:58 pm
- Location: Reading
Re:
Sorry, I realise this is a very old thread, but was an API proposed and/or is an API available?Carl Hibbard wrote:Let me know and I will add it to the ever expanding list...John Upham wrote:I'll think of something!
John
Currently, I take a CSV download and pick out "Berkshire Junior" players who also have entries in our local database (at bjca.org.uk), then use the data to update the player's local records. I could program a "screen-scrape", but I know from experience (of scraping, and being scraped) that such an approach is likely to stop working when the target site changes its layout. A well-defined set of parameters giving an XML document as output (or JSON) would be great. In fact, it would be wonderful
-
- Posts: 6028
- Joined: Fri Dec 08, 2006 8:05 pm
- Location: Evesham
Re: Re:
There isn't anything (at the moment...) but there could be I supposeBrent Smith wrote:Currently, I take a CSV download and pick out "Berkshire Junior" players who also have entries in our local database (at bjca.org.uk), then use the data to update the player's local records. I could program a "screen-scrape", but I know from experience (of scraping, and being scraped) that such an approach is likely to stop working when the target site changes its layout. A well-defined set of parameters giving an XML document as output (or JSON) would be great. In fact, it would be wonderful
What selection criteria would you use however?
Cheers
Carl Hibbard
Carl Hibbard
-
- Posts: 7262
- Joined: Wed Apr 04, 2007 10:29 am
- Location: Cove, Hampshire, England.
Re: Re:
Brent,Brent Smith wrote: Currently, I take a CSV download and pick out "Berkshire Junior" players who also have entries in our local database (at bjca.org.uk), then use the data to update the player's local records. I could program a "screen-scrape", but I know from experience (of scraping, and being scraped) that such an approach is likely to stop working when the target site changes its layout. A well-defined set of parameters giving an XML document as output (or JSON) would be great. In fact, it would be wonderful
I could have penned the very same posting....we should talk.
That's at least two people thinking about XML...
I rang Richard Haddrell some time ago with some of my ideas. He didn't know (then) what XML was.
Some of the propriety formats in use are truly wonderful and quaint!
Anyway, I am making good progress in getting my League Management s/w to create XML data to upload to the rating system.
What is the DB underlying the rating calculations? You'll never guess..!
J.
British Chess News : britishchessnews.com
Twitter: @BritishChess
Facebook: facebook.com/groups/britishchess
Twitter: @BritishChess
Facebook: facebook.com/groups/britishchess
-
- Posts: 36
- Joined: Fri Oct 24, 2008 10:58 pm
- Location: Reading
Re: Re:
Currently, a list of players for a given club can be viewed with a URL such as http://grading.bcfservices.org.uk/getcl ... e%20Junior - this could be extended with an extra parameter such as xml=Y (or outputFormat=XML, which would allow for other possibilities such as outputFormat=csv). The result might be a file containing the text/data as below (I tried to add this as an attachment, instead of in-line text, but .xml files were not allowed)Carl Hibbard wrote: There isn't anything (at the moment...) but there could be I suppose
What selection criteria would you use however?
Details for a given player in XML format could have a URL such as http://grading.bcfservices.org.uk/getre ... Format=XML giving an XML document such as example 2 below.
Please consider these straw man suggestions to be implemented as you see fit, if you consider it worthwhile at all ! As you work on a database which can be considered a central / national resource, and I only work on a local database, I'm not sure I can offer anything in return, but if you can think of anything, just ask.
Possible XML document for query 1:
<?xml version="1.0"?>
<ECFGradingDatabaseEntries>
<ECFGradingDatabaseEntry Ref="259489E">Adair, James</ECFGradingDatabaseEntry>
<ECFGradingDatabaseEntry Ref="246172K">Andrews, David A</ECFGradingDatabaseEntry>
<ECFGradingDatabaseEntry Ref="247351D">Archer-Lock, Adrian</ECFGradingDatabaseEntry>
</ECFGradingDatabaseEntries>
Possible XML document for query 2:
<?xml version="1.0"?>
<ECFGradingDatabaseEntry
Ref="259489E"
Sex="M"
Age="15"
Category="A"
Grade="174"
GradeLast="150"
GradeGames="95"
RapidCategory="B"
RapidGrade="168"
RapidGradeLast="167"
RapidGradeGames="23"
FIDECode="406252"
Nation="ENG"
GradeNew="193"
RapidGradeNew="184">
Adair, James
<Clubs>
<Club>Reading</Club>
<Club>Berkshire Junior</Club>
<Club>Berkshire CA</Club>
<Club>Conquistadors</Club>
<Club>Sandhurst</Club>
</Clubs>
</ECFGradingDatabaseEntry>
-
- Posts: 6028
- Joined: Fri Dec 08, 2006 8:05 pm
- Location: Evesham
Re: Re:
Drop me an email to remind me and I will organize it for you - there was already a plain text type inclusion for people to link to from their websites using an inline frame based mechanismBrent Smith wrote:Currently, a list of players for a given club can be viewed with a URL such as http://grading.bcfservices.org.uk/getcl ... e%20Junior - this could be extended with an extra parameter such as xml=Y (or outputFormat=XML, which would allow for other possibilities such as outputFormat=csv). The result might be a file containing the text/data as below (I tried to add this as an attachment, instead of in-line text, but .xml files were not allowed)Carl Hibbard wrote: There isn't anything (at the moment...) but there could be I suppose
What selection criteria would you use however?
http://grading.bcfservices.org.uk/getcl ... e%20Junior
I will need a reminder to be honest!
Cheers
Carl Hibbard
Carl Hibbard
-
- Posts: 2
- Joined: Thu Jan 08, 2009 10:21 pm
- Location: Hammerfest, Norway
Re: API Availability ??
Hello there,
I am the author of TournamentService (TS), a piece of software for managing chess tournaments.
I am now playing with the idea of adapting it to the ECF grading system (provided the ECF grading will persist??). So, API availability is of interest to me, too.
However, I guess you mr.Hibbard has more than enough to do , so my question is very simple: Instead of working out a new API, all I need is a predictable and permanent URL for the latest list. The current download link (http://grading.bcfservices.org.uk/grades2008v3.csv) obviously will change as the next list (year or version) is released.
I noticed the "Live database" button links to http://grading.bcfservices.org.uk/getdownload.php. Now, THAT might be a permanent link. Only, the web page says "Only accessible when the current database differs from the master list". Is that true? Will getdownload.php not work all the time?
What I would like to do is to have TS automatically download this list and use it for aiding player input and identification, like I've done for other federations, including FIDE.
The next step is of course to produce the result file for ECF, but that's another post....
Any answers or comments would be greatly appreciated!
I am the author of TournamentService (TS), a piece of software for managing chess tournaments.
I am now playing with the idea of adapting it to the ECF grading system (provided the ECF grading will persist??). So, API availability is of interest to me, too.
However, I guess you mr.Hibbard has more than enough to do , so my question is very simple: Instead of working out a new API, all I need is a predictable and permanent URL for the latest list. The current download link (http://grading.bcfservices.org.uk/grades2008v3.csv) obviously will change as the next list (year or version) is released.
I noticed the "Live database" button links to http://grading.bcfservices.org.uk/getdownload.php. Now, THAT might be a permanent link. Only, the web page says "Only accessible when the current database differs from the master list". Is that true? Will getdownload.php not work all the time?
What I would like to do is to have TS automatically download this list and use it for aiding player input and identification, like I've done for other federations, including FIDE.
The next step is of course to produce the result file for ECF, but that's another post....
Any answers or comments would be greatly appreciated!
-
- Posts: 6028
- Joined: Fri Dec 08, 2006 8:05 pm
- Location: Evesham
Re: API Availability ??
The text isn't actually true no!Harald Heggelund wrote:I noticed the "Live database" button links to http://grading.bcfservices.org.uk/getdownload.php. Now, THAT might be a permanent link. Only, the web page says "Only accessible when the current database differs from the master list". Is that true? Will getdownload.php not work all the time?
That should be a permanent link to the "live" database and will always be available - please help yourself...
The "other" download is only ever a historical copy of that just so people can tell the difference
Cheers
Carl Hibbard
Carl Hibbard
-
- Posts: 6028
- Joined: Fri Dec 08, 2006 8:05 pm
- Location: Evesham
Re: API Availability ??
I should add I will soon be doing a database update to 2008v4 although the "live" will still workHarald Heggelund wrote:Any answers or comments would be greatly appreciated!
Next season the two extra new grade columns stuck on the end after "nation" will be removed when those new grades become the standard
Any questions then please let me know
Cheers
Carl Hibbard
Carl Hibbard