These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Contract API Help

Author
Muul Udonii
THORN Syndicate
Northern Coalition.
#1 - 2014-01-01 01:17:32 UTC  |  Edited by: Muul Udonii
Hey all,

I've built a system to pull api details for my entire corp, and I've got it all working except one little bit.

The contractitems doesn't ever seem to return anything. I loaded 130 characters and the table is empty. Upon investigation I noticed that the XML returned always says the below:


error code="531">Failed getting contract information.


Now, I know I'm querying it 'correct' as per the wiki, but I'm clearly doing something wrong.

Has anyone ever got this working and can give a hint?



Am I doing something wrong?


Cheers for any help.
Wafflehead
Garoun Investment Bank
Gallente Federation
#2 - 2014-01-01 12:10:59 UTC  |  Edited by: Wafflehead
Muul Udonii wrote:
Hey all,

I've built a system to pull api details for my entire corp, and I've got it all working except one little bit.

The contractitems doesn't ever seem to return anything. I loaded 130 characters and the table is empty. Upon investigation I noticed that the XML returned always says the below:


error code="531">Failed getting contract information.


Now, I know I'm querying it 'correct' as per the wiki, but I'm clearly doing something wrong.

Has anyone ever got this working and can give a hint?

One API query that ought to work is:

** REMOVED **

Am I doing something wrong?


Cheers for any help.



You should remove your API details unless you happy for that to be leaked.

You first need to call the Contracts.xml.aspx to get the contract details... for example.. (your API)

row contractID="76558877" issuerID="348459571" issuerCorpID="857174087" assigneeID="92653396" acceptorID="92653396" startStationID="60000964" endStationID="60000964" type="ItemExchange" status="Completed"

Then you need to call your original API like this..

characterid=92653396&contractid=76558877

That will give you the list of items that was in the contract (in this example: 76558877)

row recordID="1192654233" typeID="8433" quantity="5" singleton="0" included="1"
row recordID="1192654234" typeID="11563" quantity="5" singleton="0" included="1"
Muul Udonii
THORN Syndicate
Northern Coalition.
#3 - 2014-01-01 23:23:02 UTC
thanks for the assist, I realised what I was doing wrong; using the characterid instead of the contractid :D