Play Now Login Create Account
illyriad
  New Posts New Posts RSS Feed - Tournament Square Update!
  FAQ FAQ  Forum Search   Register Register  Login Login

Tournament Square Update!

 Post Reply Post Reply Page  <12345 7>
Author
Sheza View Drop Down
Forum Warrior
Forum Warrior
Avatar

Joined: 16 Oct 2012
Location: Kumala
Status: Offline
Points: 325
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sheza Quote  Post ReplyReply Direct Link To This Post Posted: 06 Apr 2016 at 20:52
i got all excited for GM Stormcrow post ....and it was about cake. sigh...
If Horses don't go to Heaven when they die. then I want to go where they go.
Back to Top
GM Stormcrow View Drop Down
Moderator Group
Moderator Group
Avatar
GM

Joined: 23 Feb 2010
Location: Illyria
Status: Offline
Points: 3820
Post Options Post Options   Thanks (2) Thanks(2)   Quote GM Stormcrow Quote  Post ReplyReply Direct Link To This Post Posted: 06 Apr 2016 at 17:12
I like cake.

That is all.

SC
Back to Top
Cilcain View Drop Down
Wordsmith
Wordsmith
Avatar

Joined: 13 Oct 2012
Status: Offline
Points: 106
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cilcain Quote  Post ReplyReply Direct Link To This Post Posted: 06 Apr 2016 at 13:45
Originally posted by Diva Diva wrote:

I am very limited in what was .. ok, all the way limited in what was said below. But I am grateful to know there are such great geeks all about in Illyriad that can answer these type of questions and make it seem effortless. SUCH BRAINIACS. I thank you!! 

Now can I teach you to bake a cake?? I truly could!! LOL   Embarrassed

 

Diva - I am rubbish at baking cakes.  And friends never come around to my house for a cup of tea and amateurish discourse on APIs.

You win.  Smile

C

Back to Top
Diva View Drop Down
Forum Warrior
Forum Warrior
Avatar

Joined: 20 Dec 2011
Location: United States
Status: Offline
Points: 416
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diva Quote  Post ReplyReply Direct Link To This Post Posted: 05 Apr 2016 at 17:22
I am very limited in what was .. ok, all the way limited in what was said below. But I am grateful to know there are such great geeks all about in Illyriad that can answer these type of questions and make it seem effortless. SUCH BRAINIACS. I thank you!! 

Now can I teach you to bake a cake?? I truly could!! LOL   Embarrassed

Originally posted by Cilcain Cilcain wrote:

[QUOTE=Dungshoveleux] 
Dung - yes, you're spot on.

I believe there is an easy way to do this (for the Devs).

The existing mechanism for accessing the API (i.e. the bit of code on the Illy servers) requires two parameters (other than the server name) - these are a Key_Type and the API_Key.

The API_Key is the long string that identifies the player's data that is requested - and is specific to each Key_Type.  The Key_Type is a shorter string (e.g. COMRP) for Combat Reports, that defines the content of the data requested.  A player must generate an API_Key for each type of Key_Type.

Presumably, the actual API accessed on the Illy servers is the same API regardless of the request - it's just a case of filtering/authenticating to determine what data is passed back to the requester.

Therefore, this model supports the introduction of additional Key_Types (for example "Tourney Combats": TCOMRP).  By calling the API with this Key_Type, and an associated valid API_Key, the API could pass back the required data - which in this case should just be a subset of the data returned under the COMRP Key_Type.

In development terms, the API (or API broker service if used) would need a small code change to handle the new Key_Type.  This would be very similar to the code for handling the COMRP call, but with a few data fields deleted - the XML schema would not need to change, neither would the core API logic.  Further code could be added to just return reports from combats on the set of tourney square co-ords - but that would just be icing on the cake.

A UI change would also be required to add a fourth button to the API Key screen, labelled something like "Tourney Combat Reports" - but that would mostly just copy the logic/code from the other three buttons.

I expect that accommodating this type of change request with little effort is exactly why the API was designed this way in the first place....

Cilcain


"Um diva.... you are sort of acting like a .... diva...." - PhoenixFire
Back to Top
Rill View Drop Down
Postmaster General
Postmaster General
Avatar
Player Council - Geographer

Joined: 17 Jun 2011
Location: California
Status: Offline
Points: 6903
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rill Quote  Post ReplyReply Direct Link To This Post Posted: 04 Apr 2016 at 19:55
Awesome news, this removes another barrier to tournament participation.

/me sighs

I guess this means VTX will win Larn yet again ...
Back to Top
Cilcain View Drop Down
Wordsmith
Wordsmith
Avatar

Joined: 13 Oct 2012
Status: Offline
Points: 106
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cilcain Quote  Post ReplyReply Direct Link To This Post Posted: 04 Apr 2016 at 14:15
That's great news - thanks SC.

Back to Top
Mahaut View Drop Down
Wordsmith
Wordsmith
Avatar

Joined: 20 Jan 2012
Location: North West UK
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mahaut Quote  Post ReplyReply Direct Link To This Post Posted: 04 Apr 2016 at 14:14
Many thanks Stormy, very much appreciated. Smile
Back to Top
Solanar View Drop Down
Forum Warrior
Forum Warrior
Avatar

Joined: 11 Jan 2015
Status: Offline
Points: 312
Post Options Post Options   Thanks (0) Thanks(0)   Quote Solanar Quote  Post ReplyReply Direct Link To This Post Posted: 04 Apr 2016 at 13:58
Kudos for that! Thanks SC
Back to Top
GM Stormcrow View Drop Down
Moderator Group
Moderator Group
Avatar
GM

Joined: 23 Feb 2010
Location: Illyria
Status: Offline
Points: 3820
Post Options Post Options   Thanks (2) Thanks(2)   Quote GM Stormcrow Quote  Post ReplyReply Direct Link To This Post Posted: 04 Apr 2016 at 13:49
Originally posted by Cilcain Cilcain wrote:

I expect that accommodating this type of change request with little effort is exactly why the API was designed this way in the first place....

Indeed.  I'm going to be looking into this (providing a new, tournament-square-specific Key_Type and API_Key) sometime this week.

SC


Edited by GM Stormcrow - 04 Apr 2016 at 13:52
Back to Top
Cilcain View Drop Down
Wordsmith
Wordsmith
Avatar

Joined: 13 Oct 2012
Status: Offline
Points: 106
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cilcain Quote  Post ReplyReply Direct Link To This Post Posted: 04 Apr 2016 at 12:30
Originally posted by Dungshoveleux Dungshoveleux wrote:

Hence there needs to be user control i.e. an output filter set by user preferences which restricts what is divulged.

Dung - yes, you're spot on.

I believe there is an easy way to do this (for the Devs).

The existing mechanism for accessing the API (i.e. the bit of code on the Illy servers) requires two parameters (other than the server name) - these are a Key_Type and the API_Key.

The API_Key is the long string that identifies the player's data that is requested - and is specific to each Key_Type.  The Key_Type is a shorter string (e.g. COMRP) for Combat Reports, that defines the content of the data requested.  A player must generate an API_Key for each type of Key_Type.

Presumably, the actual API accessed on the Illy servers is the same API regardless of the request - it's just a case of filtering/authenticating to determine what data is passed back to the requester.

Therefore, this model supports the introduction of additional Key_Types (for example "Tourney Combats": TCOMRP).  By calling the API with this Key_Type, and an associated valid API_Key, the API could pass back the required data - which in this case should just be a subset of the data returned under the COMRP Key_Type.

In development terms, the API (or API broker service if used) would need a small code change to handle the new Key_Type.  This would be very similar to the code for handling the COMRP call, but with a few data fields deleted - the XML schema would not need to change, neither would the core API logic.  Further code could be added to just return reports from combats on the set of tourney square co-ords - but that would just be icing on the cake.

A UI change would also be required to add a fourth button to the API Key screen, labelled something like "Tourney Combat Reports" - but that would mostly just copy the logic/code from the other three buttons.

I expect that accommodating this type of change request with little effort is exactly why the API was designed this way in the first place....

Cilcain



Back to Top
 Post Reply Post Reply Page  <12345 7>
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.