eveKB jSon output /lastkill

EDK releases + Open discussion and chat about EDK.
Post Reply
Kaho
Greenhorn
Posts: 15
Joined: Fri Oct 07, 2016 15:41

eveKB jSon output /lastkill

Post by Kaho »

Hey,

little question....

I have used a Discordbott that fetches new Kills rom zKB and posted it on our Discord Server.
The Bot checked /lastkill/ for kills & losses.

Now after zKB disabled this Service and put RedisQ online it dosnt work anymore.
Is there a Option to put a API-like System to our own Killboard?

Like zKB did?

Thanks :-)


Greetings,

Kaho
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

Re: eveKB jSon output /lastkill

Post by Salvoxia »

Hi,

it's certainly possible, but not implemented yet.
Could you explain what exactly the /lastkill modifier did and what information exactly was contained in the output?

I guess the IDFeed could provide the basic functionality, just not as jSON output, but XML.

Best Regards,
Salvoxia
Kaho
Greenhorn
Posts: 15
Joined: Fri Oct 07, 2016 15:41

Re: eveKB jSon output /lastkill

Post by Kaho »

Hey :-)

thanks for your fast reply.
Ill activate the Notify option here :P

Okay... zKillboard had the endpoint corporationID/afterkillid/<ID>
On this Endpoint were a json Output with all kills after the KillID <ID>.

The Output was like this: https://redisq.zkillboard.com/listen.php

Code: Select all

{"package":{"killID":61172941,"killmail":{"solarSystem":{"id_str":"30045338","href":"https://crest-tq.eveonline.com/solarsystems/30045338/","id":30045338,"name":"Hikkoken"},"killID":61172941,"killTime":"2017.03.30 09:42:59","attackers":[{"alliance":{"id_str":"99002584","href":"https://crest-tq.eveonline.com/alliances/99002584/","id":99002584,"name":"Smile 'n' Wave","icon":{"href":"http://imageserver.eveonline.com/Alliance/99002584_128.png"}},"shipType":{"id_str":"32872","href":"https://crest-tq.eveonline.com/inventory/types/32872/","id":32872,"name":"Algos","icon":{"href":"http://imageserver.eveonline.com/Type/32872_128.png"}},"faction":{"id_str":"500004","href":"https://crest-tq.eveonline.com/factions/500004/","id":500004,"name":"Gallente Federation","icon":{"href":"http://imageserver.eveonline.com/Alliance/500004_128.png"}},"corporation":{"id_str":"98232099","href":"https://crest-tq.eveonline.com/corporations/98232099/","id":98232099,"name":"Nomads of Republic","icon":{"href":"http://imageserver.eveonline.com/Corporation/98232099_128.png"}},"character":{"id_str":"90204495","href":"https://crest-tq.eveonline.com/characters/90204495/","id":90204495,"name":"PlutoniuM86","icon":{"href":"http://imageserver.eveonline.com/Character/90204495_128.jpg"}},"damageDone_str":"1623","weaponType":{"id_str":"2456","href":"https://crest-tq.eveonline.com/inventory/types/2456/","id":2456,"name":"Hobgoblin II","icon":{"href":"http://imageserver.eveonline.com/Type/2456_128.png"}},"finalBlow":true,"securityStatus":-6.7,"damageDone":1623}],"attackerCount":1,"victim":{"damageTaken_str":"1623","alliance":{"id_str":"99004127","href":"https://crest-...
Would be nice if we can get a output like this... If its codeable.
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

Re: eveKB jSon output /lastkill

Post by Salvoxia »

Hi,

the information provided by IDFeed with the following URL should could pretty close, exception it's XML, not jSON. I guess modifying your bot to read XML is not an option?

Code: Select all

http://kb.eve-corp.org/?a=idfeed&corp=98437227&lastID=61341550&allkills=0
Best Regards,
Salvoxia
Kaho
Greenhorn
Posts: 15
Joined: Fri Oct 07, 2016 15:41

Re: eveKB jSon output /lastkill

Post by Kaho »

Hey Salvoxia,

Ill give it a try with a xml2json Import.
Should Work ;-)

Thank you for your help :-)

Greetings
Post Reply