New API

Archival storage for Announcements. Peruse old Announcements here!

Moderator: Community Team

Forum rules
Please read the Community Guidelines before posting.
User avatar
lackattack
Posts: 6097
Joined: Sun Jan 01, 2006 10:34 pm
Location: Montreal, QC

New API

Post by lackattack »

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
Timminz
Posts: 5579
Joined: Tue Feb 27, 2007 1:05 pm
Gender: Male
Location: At the store

Re: New API

Post by Timminz »

I'm excited to see what the local code-geeks can do with this update.
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: New API

Post by Dako »

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
jako
Posts: 1022
Joined: Sun Jun 03, 2007 4:50 am
Gender: Male
Location: A lost soul with no-one to stalk.

Re: New API

Post by jako »

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.
ManBungalow
Posts: 3431
Joined: Sun Jan 13, 2008 7:02 am
Location: On a giant rock orbiting a star somewhere

Re: New API

Post by ManBungalow »

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
User avatar
Rocketry
Posts: 1416
Joined: Wed May 16, 2007 5:33 pm
Gender: Male
Location: Westminster
Contact:

Re: New API

Post by Rocketry »

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

Rocket.
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: New API

Post by Dako »

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
lozzini
Posts: 897
Joined: Thu Dec 21, 2006 10:46 am
Gender: Male
Location: Closer than you may think

Re: New API

Post by lozzini »

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
FireStar
Posts: 322
Joined: Tue Jan 09, 2007 5:34 pm
Gender: Female

Re: New API

Post by FireStar »

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
MrBenn
Posts: 6880
Joined: Wed Nov 21, 2007 9:32 am
Location: Off Duty

Re: New API

Post by MrBenn »

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
karelpietertje
Posts: 801
Joined: Mon Sep 03, 2007 1:43 pm
Gender: Male
Contact:

Re: New API

Post by karelpietertje »

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
chipv
Head Tech
Head Tech
Posts: 3084
Joined: Mon Apr 28, 2008 5:30 pm

Re: New API

Post by chipv »

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
a.sub
Posts: 1834
Joined: Thu Jun 14, 2007 2:07 am
Gender: Male

Re: New API

Post by a.sub »

As the non Gekk i am (in this case) i am just gonna say
NICE JOB
and walk away
*walks away
User avatar
Marino_1
Posts: 59
Joined: Thu Oct 18, 2007 7:07 pm
Gender: Male
Location: Toronto, I think... Sometimes I get confused.

Re: New API

Post by Marino_1 »

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
chipv
Head Tech
Head Tech
Posts: 3084
Joined: Mon Apr 28, 2008 5:30 pm

Re: New API

Post by chipv »

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.
whitestazn88
Posts: 3128
Joined: Mon Feb 05, 2007 2:59 pm
Gender: Male
Location: behind you
Contact:

Re: New API

Post by whitestazn88 »

word.
User avatar
sailorseal
Posts: 2735
Joined: Sun May 25, 2008 1:49 pm
Gender: Male
Location: conquerclub.com

Re: New API

Post by sailorseal »

What ever it is,
cool! :lol:
User avatar
Timminz
Posts: 5579
Joined: Tue Feb 27, 2007 1:05 pm
Gender: Male
Location: At the store

Re: New API

Post by Timminz »

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
a.sub
Posts: 1834
Joined: Thu Jun 14, 2007 2:07 am
Gender: Male

Re: New API

Post by a.sub »

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*
Chariot of Fire
Posts: 3685
Joined: Wed Oct 24, 2007 8:13 am
Gender: Male
Location: Buckinghamshire U.K.

Re: New API

Post by Chariot of Fire »

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
lozzini
Posts: 897
Joined: Thu Dec 21, 2006 10:46 am
Gender: Male
Location: Closer than you may think

Re: New API

Post by lozzini »

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
Bruceswar
Posts: 9713
Joined: Sun Dec 23, 2007 12:36 am
Location: Cow Pastures

Re: New API

Post by Bruceswar »

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
karelpietertje
Posts: 801
Joined: Mon Sep 03, 2007 1:43 pm
Gender: Male
Contact:

Re: New API

Post by karelpietertje »

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
hiitsmestevie1
Posts: 243
Joined: Wed Sep 05, 2007 7:07 pm
Gender: Female
Location: connecticut

Re: New API

Post by hiitsmestevie1 »

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
lozzini
Posts: 897
Joined: Thu Dec 21, 2006 10:46 am
Gender: Male
Location: Closer than you may think

Re: New API

Post by lozzini »

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
Locked

Return to “Announcement Archives”