Conquer Club

New API

Archival storage for Announcements. Peruse old Announcements here!

Moderator: Community Team

Forum rules
Please read the Community Guidelines before posting.

New API

Postby lackattack on Thu May 14, 2009 3:11 pm

For those of you who don't look like :ugeek: an API (application programming interface) is a something that programmers can use to build a program or website that interacts with Conquer Club automatically. For now the API is read-only and just lists games, but is a big improvement over the old Game History XML. For one thing, you can now get games for any tournament. Hopefully this will lead to cooler tools for tournament organizers and everyday members like you.

The API is located here: http://www.conquerclub.com/api.php

For more information about using and creating 3rd party utilities for Conquer Club, please visit the Plugins & Addons forum.

P.S. Stay tuned... we have something great coming in the next update! :P
User avatar
Sergeant lackattack
 
Posts: 6096
Joined: Sun Jan 01, 2006 10:34 pm
Location: Montreal, QC

Re: New API

Postby Timminz on Thu May 14, 2009 3:16 pm

I'm excited to see what the local code-geeks can do with this update.
User avatar
Captain Timminz
 
Posts: 5579
Joined: Tue Feb 27, 2007 1:05 pm
Location: At the store

Re: New API

Postby Dako on Thu May 14, 2009 3:58 pm

This is just awesome.
Now developers can use soap calls to do all the nifty stuff in their apps.
Personally, I like rpc-calls but no one actually uses them and I don't see CC implementing that.

Great improvement lack!
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: New API

Postby jako on Thu May 14, 2009 4:05 pm

I really am not a :ugeek: so I have no idea about all this programming stuff but hey sounds good to me. Great job lack. =D> :mrgreen:
Image

Time to retire this much loved sig of mine with a new clan.
User avatar
Lieutenant jako
 
Posts: 1022
Joined: Sun Jun 03, 2007 4:50 am
Location: A lost soul with no-one to stalk.

Re: New API

Postby ManBungalow on Thu May 14, 2009 4:16 pm

You've still got old code sitting around there.
<example># surrendered</example>

<tag>bonus_cards - "1" = No Cards, "2" = Escalating, "3" = Flat Rate<tag>


I can't pretend to understand how this is going to tie in with the XML we have at the moment 8-[
Image
Colonel ManBungalow
 
Posts: 3431
Joined: Sun Jan 13, 2008 7:02 am
Location: On a giant rock orbiting a star somewhere

Re: New API

Postby Rocketry on Thu May 14, 2009 4:25 pm

This is just fantastic. Really great. Now what the hell does it mean?

Rocket.
User avatar
Lieutenant Rocketry
 
Posts: 1416
Joined: Wed May 16, 2007 5:33 pm
Location: Westminster

Re: New API

Postby Dako on Thu May 14, 2009 4:45 pm

Quick explanation from a :ugeek:
XML is a cross-anything language that shows structured data. Means it is always the same and you can program a pattern that will transform this XML into something comprehensible like a simple listing with names.

API is a thingie that you can ask to get that XML. Depending on what you ask you get the structure - but this structure is already defined so you can predict how it will look like depending on your request.

Most important - this thing can be easily used inside loops with dynamically changing requests. And you always will get a new response, transform it somehow and then output the data somewhere.

Real example - now you can easily (15 minutes of work) find all the tournaments games with any player, sort them, calculate points and see how many that player have earned/lost in each tournament and totally.

It can be used on any web-related program and people will start developing some small applications for you - notificators will be much easier too implement (since you can track here game state changes) and so on.

You can't even imagine how great API can be :).
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: New API

Postby lozzini on Thu May 14, 2009 5:10 pm

Dako wrote:Quick explanation from a :ugeek:
XML is a cross-anything language that shows structured data. Means it is always the same and you can program a pattern that will transform this XML into something comprehensible like a simple listing with names.

API is a thingie that you can ask to get that XML. Depending on what you ask you get the structure - but this structure is already defined so you can predict how it will look like depending on your request.

Most important - this thing can be easily used inside loops with dynamically changing requests. And you always will get a new response, transform it somehow and then output the data somewhere.

Real example - now you can easily (15 minutes of work) find all the tournaments games with any player, sort them, calculate points and see how many that player have earned/lost in each tournament and totally.

It can be used on any web-related program and people will start developing some small applications for you - notificators will be much easier too implement (since you can track here game state changes) and so on.

You can't even imagine how great API can be :).



ok... sounds great lack well done =D> =D>

now someone explain it even more basicly :P
Top Rank: Captain
Top Score: 1835
Top Pos: 1707
Nothing ventured... nothing gained
User avatar
Sergeant 1st Class lozzini
 
Posts: 897
Joined: Thu Dec 21, 2006 10:46 am
Location: Closer than you may think

Re: New API

Postby FireStar on Thu May 14, 2009 5:31 pm

lozzini wrote:ok... sounds great lack well done =D> =D>

now someone explain it even more basicly :P


lol
I would explain, but I thought he did a pretty good job of it.

great work lack, this is a great improvement to the site.
Image
User avatar
Lieutenant FireStar
 
Posts: 322
Joined: Tue Jan 09, 2007 5:34 pm

Re: New API

Postby MrBenn on Thu May 14, 2009 5:52 pm

Dako wrote:You can't even imagine how great API can be :).

I have a fairly active imagination, and I've never imagined that :?

On a serious note, good job =D>
Image
PB: 2661 | He's blue... If he were green he would die | No mod would be stupid enough to do that
User avatar
Lieutenant MrBenn
 
Posts: 6880
Joined: Wed Nov 21, 2007 9:32 am
Location: Off Duty

Re: New API

Postby karelpietertje on Thu May 14, 2009 6:19 pm

lackattack wrote:For those of you who don't look like :ugeek:

what does me looking like a :ugeek: have to do with anything :)
it's about whether or not I am one inside :lol:

even though, or maybe because I am not one, the API looks real impressive 8-)

lackattack wrote:P.S. Stay tuned... we have something great coming in the next update!


why ruin my sleep with that :lol:?
Looking forward to it already!
User avatar
Major karelpietertje
 
Posts: 801
Joined: Mon Sep 03, 2007 1:43 pm

Re: New API

Postby chipv on Thu May 14, 2009 6:20 pm

Fantastic job, lack, thanks very much for this.

Full Breakdown of the API for people wishing to use it : viewtopic.php?f=59&t=86562&p=2010324#p2010324
An example script using the API can be found here : viewtopic.php?f=59&t=86543
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: New API

Postby a.sub on Thu May 14, 2009 6:22 pm

As the non Gekk i am (in this case) i am just gonna say
NICE JOB
and walk away
*walks away
User avatar
Cadet a.sub
 
Posts: 1834
Joined: Thu Jun 14, 2007 2:07 am

Re: New API

Postby Marino_1 on Thu May 14, 2009 6:27 pm

lozzini wrote:
Dako wrote:Quick explanation from a :ugeek:
XML is a cross-anything language that shows structured data. Means it is always the same and you can program a pattern that will transform this XML into something comprehensible like a simple listing with names.

API is a thingie that you can ask to get that XML. Depending on what you ask you get the structure - but this structure is already defined so you can predict how it will look like depending on your request.

Most important - this thing can be easily used inside loops with dynamically changing requests. And you always will get a new response, transform it somehow and then output the data somewhere.

Real example - now you can easily (15 minutes of work) find all the tournaments games with any player, sort them, calculate points and see how many that player have earned/lost in each tournament and totally.

It can be used on any web-related program and people will start developing some small applications for you - notificators will be much easier too implement (since you can track here game state changes) and so on.

You can't even imagine how great API can be :).



ok... sounds great lack well done =D> =D>

now someone explain it even more basicly :P


I'm with Lozzini...
User avatar
Captain Marino_1
 
Posts: 59
Joined: Thu Oct 18, 2007 7:07 pm
Location: Toronto, I think... Sometimes I get confused.

Re: New API

Postby chipv on Thu May 14, 2009 6:43 pm

Ok, well what lack has done is provide programmers with an easy way to get data from Conquer Club games.

He has written a script which programmers can talk to by using a special URL.
You can add parameters to this URL to get different types of games (for example only tournament games or games from a specific player).

The script returns a file full of data about all the games asked for, such as game number, players, eliminations, and points won/lost.

So for example I could ask this script to give me a file showing data for all games for a specific tournament.

Or I could ask for all of my active games.

Or even show all speed games for any player.

I can then look at this file and use programming to extract all of this data and then use.

For example this greasemonkey script: viewtopic.php?f=59&t=86543

Shows a list of games played and wins for all players in any tournament.
All you do is specify a tournament name and it asks for the data file(s) for that tournament.
The script then looks at all the games in the file and collects the data for each player.
Then it displays it.

So this is an example of how the API can be used.
User avatar
Captain chipv
 
Posts: 2750
Joined: Mon Apr 28, 2008 5:30 pm

Re: New API

Postby whitestazn88 on Thu May 14, 2009 7:30 pm

word.
Lieutenant whitestazn88
 
Posts: 3128
Joined: Mon Feb 05, 2007 2:59 pm
Location: behind you

Re: New API

Postby sailorseal on Thu May 14, 2009 7:43 pm

What ever it is,
cool! :lol:
User avatar
Cook sailorseal
 
Posts: 2735
Joined: Sun May 25, 2008 1:49 pm
Location: conquerclub.com

Re: New API

Postby Timminz on Thu May 14, 2009 9:02 pm

lackattack wrote:P.S. Stay tuned... we have something great coming in the next update! :P

*crosses fingers for 2 player team games*
User avatar
Captain Timminz
 
Posts: 5579
Joined: Tue Feb 27, 2007 1:05 pm
Location: At the store

Re: New API

Postby a.sub on Thu May 14, 2009 11:29 pm

Timminz wrote:
lackattack wrote:P.S. Stay tuned... we have something great coming in the next update! :P

*crosses fingers for 2 player team games*

*crosses fingers for live strip chatting in a sidebar while playing speed games*
User avatar
Cadet a.sub
 
Posts: 1834
Joined: Thu Jun 14, 2007 2:07 am

Re: New API

Postby Chariot of Fire on Fri May 15, 2009 1:55 am

a.sub wrote:
Timminz wrote:
lackattack wrote:P.S. Stay tuned... we have something great coming in the next update! :P

*crosses fingers for 2 player team games*

*crosses fingers for live strip chatting in a sidebar while playing speed games*


Live strip...hmm, nice idea. Maybe not as distracting (or as entertaining) as voice-interactive gameplay would be though:

"Oh Kandinski, you're massive. You're taking me. Ohhhhh!!!"

Could open a whole new market.
User avatar
Colonel Chariot of Fire
 
Posts: 3599
Joined: Wed Oct 24, 2007 8:13 am
Location: Buckinghamshire U.K.

Re: New API

Postby lozzini on Fri May 15, 2009 4:45 am

chipv wrote:Ok, well what lack has done is provide programmers with an easy way to get data from Conquer Club games.

He has written a script which programmers can talk to by using a special URL.
You can add parameters to this URL to get different types of games (for example only tournament games or games from a specific player).

The script returns a file full of data about all the games asked for, such as game number, players, eliminations, and points won/lost.

So for example I could ask this script to give me a file showing data for all games for a specific tournament.

Or I could ask for all of my active games.

Or even show all speed games for any player.

I can then look at this file and use programming to extract all of this data and then use.

For example this greasemonkey script: viewtopic.php?f=59&t=86543

Shows a list of games played and wins for all players in any tournament.
All you do is specify a tournament name and it asks for the data file(s) for that tournament.
The script then looks at all the games in the file and collects the data for each player.
Then it displays it.

So this is an example of how the API can be used.



ok ok i think i gets it :) :)
Top Rank: Captain
Top Score: 1835
Top Pos: 1707
Nothing ventured... nothing gained
User avatar
Sergeant 1st Class lozzini
 
Posts: 897
Joined: Thu Dec 21, 2006 10:46 am
Location: Closer than you may think

Re: New API

Postby Bruceswar on Fri May 15, 2009 4:59 am

Timminz wrote:
lackattack wrote:P.S. Stay tuned... we have something great coming in the next update! :P

*crosses fingers for 2 player team games*



Me too :D
Highest Rank: 26 Highest Score: 3480
Image
User avatar
Corporal Bruceswar
 
Posts: 9713
Joined: Sun Dec 23, 2007 12:36 am
Location: Cow Pastures

Re: New API

Postby karelpietertje on Fri May 15, 2009 7:15 am

a.sub wrote:
Timminz wrote:
lackattack wrote:P.S. Stay tuned... we have something great coming in the next update! :P

*crosses fingers for 2 player team games*

*crosses fingers for live strip chatting in a sidebar while playing speed games*

*crosses fingers for free points for karelpietertje*
User avatar
Major karelpietertje
 
Posts: 801
Joined: Mon Sep 03, 2007 1:43 pm

Re: New API

Postby hiitsmestevie1 on Fri May 15, 2009 7:27 am

Timminz wrote:
lackattack wrote:P.S. Stay tuned... we have something great coming in the next update! :P

*crosses fingers for 2 player team games*

dont we already have 2 player team games??? hence the word team? or am i missing something
Image
A relationship is like playing doubles *flat rate or esc*..If you don't have a good partner, you better have a good hand!
User avatar
Lieutenant hiitsmestevie1
 
Posts: 243
Joined: Wed Sep 05, 2007 7:07 pm
Location: connecticut

Re: New API

Postby lozzini on Fri May 15, 2009 7:33 am

hiitsmestevie1 wrote:
Timminz wrote:
lackattack wrote:P.S. Stay tuned... we have something great coming in the next update! :P

*crosses fingers for 2 player team games*

dont we already have 2 player team games??? hence the word team? or am i missing something


yes you are missing something :lol: :lol: :lol:

reread what they want
Top Rank: Captain
Top Score: 1835
Top Pos: 1707
Nothing ventured... nothing gained
User avatar
Sergeant 1st Class lozzini
 
Posts: 897
Joined: Thu Dec 21, 2006 10:46 am
Location: Closer than you may think

Next

Return to Announcement Archives

Who is online

Users browsing this forum: No registered users