03OCT15 - XML API update, notifications |
Post Reply |
Author | |
GM Stormcrow
Moderator Group GM Joined: 23 Feb 2010 Location: Illyria Status: Offline Points: 3926 |
Post Options
Thanks(0)
Posted: 03 Oct 2015 at 23:36 |
Hi everyone,
Live, immediately, some additions and changes to the API XML (with thanks to Kubluntu for flagging these up) and notifications. Combat API XML
Please note that complete sets of this new XML data is only available for arrivals from now on - historic data will either not be available or will be incomplete. SAMPLE XML OUTPUT Of a non-contested occupation report. This XML file does not appear to have any style information associated with it. The document tree is shown below. <combatevent> <script/> <server> <name>elgea</name> <servercountrycode>gb</servercountrycode> <serverlanguagecode>en</serverlanguagecode> <serverlivedate>2010-02-21T21:53:01.190</serverlivedate> <datagenerationdatetime>2015-10-03T22:09:48.110</datagenerationdatetime> </server> <personalcombatkey id="XXXXXXXXXXXXXXX"/> <uniquecombatidentifier> <server id="elgea"/> <combatguid id="XXXXXXXXXXXXXXX"/> <troopmovementevent id="XXXXXXXXXXXXXXX" occurrence_datetime="2015-10-03T22:03:41.987"/> <datacomplete id="1"/> </uniquecombatidentifier> <combatoverview> <location> <X>384</X> <Y>-1814</Y> <terrainspecifictype id="50">Landslip</terrainspecifictype> <terraincombattype id="4">Small Hill</terraincombattype> </location> <datetime> <armymovementbegandate>2015-10-03T21:55:38.990</armymovementbegandate> <combatoccurrencedate>2015-10-03T22:03:41.987</combatoccurrencedate> <occupationlengthsecs>600</occupationlengthsecs> </datetime> <stratagem> <armyaction id="6">Occupying</armyaction> <feint>No</feint> </stratagem> <defensedataincluded>Yes</defensedataincluded> </combatoverview> <participants> <participant> <role>Attacker</role> <player> <playername id="1">GM Stormcrow</playername> <troopsfromtown id="1">Stormont</troopsfromtown> <alliance id="18"> <allianceticker>DEVS</allianceticker> <alliancename>Band of Devs</alliancename> </alliance> </player> <armies> <army> <armyname id="514810">Test Army 1</armyname> <divisions> <division> <divisionname id="791189"/> <commandername id="29130">Mantoa Beringer</commandername> <commanderhealth>400</commanderhealth> <units> <unit> <unitname id="123">Elite Praetorian Guardsmen</unitname> <unitquantity>500000</unitquantity> </unit> </units> </division> </divisions> </army> </armies> </participant> </participants> </combatevent> NOTIFICATION ADDITIONS
Please do let me know of any issues you run into with these data feeds. Regards, SC
|
|
ubluntu
Forum Warrior Joined: 24 Aug 2013 Status: Offline Points: 324 |
Post Options
Thanks(0)
|
Thank You!
|
|
Rill
Postmaster General Player Council - Geographer Joined: 17 Jun 2011 Location: California Status: Offline Points: 7078 |
Post Options
Thanks(0)
|
This is awesome, will help with ubluntu's planned king of the hill style tournament, I imagine?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |