Moderator: Community Team
<example># surrendered</example>
<tag>bonus_cards - "1" = No Cards, "2" = Escalating, "3" = Flat Rate<tag>
Dako wrote:Quick explanation from a
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 .
lozzini wrote:ok... sounds great lack well done
now someone explain it even more basicly
Dako wrote:You can't even imagine how great API can be .
lackattack wrote:For those of you who don't look like
lackattack wrote:P.S. Stay tuned... we have something great coming in the next update!
lozzini wrote:Dako wrote:Quick explanation from a
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
now someone explain it even more basicly
lackattack wrote:P.S. Stay tuned... we have something great coming in the next update!
Timminz wrote:lackattack wrote:P.S. Stay tuned... we have something great coming in the next update!
*crosses fingers for 2 player team games*
a.sub wrote:Timminz wrote:lackattack wrote:P.S. Stay tuned... we have something great coming in the next update!
*crosses fingers for 2 player team games*
*crosses fingers for live strip chatting in a sidebar while playing speed games*
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.
Timminz wrote:lackattack wrote:P.S. Stay tuned... we have something great coming in the next update!
*crosses fingers for 2 player team games*
a.sub wrote:Timminz wrote:lackattack wrote:P.S. Stay tuned... we have something great coming in the next update!
*crosses fingers for 2 player team games*
*crosses fingers for live strip chatting in a sidebar while playing speed games*
Timminz wrote:lackattack wrote:P.S. Stay tuned... we have something great coming in the next update!
*crosses fingers for 2 player team games*
hiitsmestevie1 wrote:Timminz wrote:lackattack wrote:P.S. Stay tuned... we have something great coming in the next update!
*crosses fingers for 2 player team games*
dont we already have 2 player team games??? hence the word team? or am i missing something
Return to Announcement Archives
Users browsing this forum: No registered users