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.
 

[API Question] ContractItems for Alliance contracts.

Author
Ajurna Jakar
Jian Products Engineering Group
#1 - 2012-04-10 08:49:19 UTC
I'm currently working on a project and we're pulling corp contracts via the corp api. it provides a large list including alliance contracts.

now even though in game i can read the items in these contracts if i try to pull them from the api it says no. is there a reason i can't pull the items from alliance contracts? i want to make a searchable list of all contracts available in the contracts list and this

http://eve-corp-management.org/ 

Desmont McCallock
#2 - 2012-04-10 11:29:28 UTC
Quote:
/char/ContractItems.xml.aspx: Lists items that a specified contract contains, use the contractID parameter to specify the contract. Note that items for courier contracts are not displayed. Each item in the list has the following attributes:

recordID: A unique key.
typeID: The type of the item.
quantity: The actual quantity.
rawQuantity: This attribute will only show up if the quantity is a negative number in the DB. Negative quantities are in fact codes, -1 indicates that the item is a singleton (non-stackable). If the item happens to be a Blueprint, -1 is an Original and -2 is a Blueprint Copy.
singleton: 1 if this is a singleton item, 0 if not.
included: 1 if the contract issuer has submitted this item with the contract, 0 if the isser is asking for this item in the contract.

http://community.eveonline.com/devblog.asp?a=blog&nbid=2383
Ajurna Jakar
Jian Products Engineering Group
#3 - 2012-04-10 15:08:00 UTC
the problem isnt parsing the data from contractitems. the problem is that contracts that appear in the contract list that you can pull with /corp/contracts.xml.aspx which are item trades you cannot get the items with /corp/contractitems.xml.aspx.

http://eve-corp-management.org/ 

Desmont McCallock
#4 - 2012-04-10 15:31:52 UTC
Quote:
..., use the contractID parameter to specify the contract.
Ajurna Jakar
Jian Products Engineering Group
#5 - 2012-04-11 07:21:57 UTC
sorry maybe im not being clear. i'm able to pull the items on corp contracts no problem. the issue is that when i get the contract list it comes with alliance contracts as well. these contracts i cant pull the items for, it comes with an error

http://eve-corp-management.org/ 

Chaotic Mind
Republic University
Minmatar Republic
#6 - 2012-04-11 07:49:44 UTC
are those the alliance contracts your corp did?
Ajurna Jakar
Jian Products Engineering Group
#7 - 2012-04-11 09:37:11 UTC
nope. that'd the weird/annoying part. they appear in the list when you pull /corp/contracts.xml.aspx but when you try to get items off them you cant What?

http://eve-corp-management.org/ 

Desmont McCallock
#8 - 2012-04-11 10:33:37 UTC  |  Edited by: Desmont McCallock
Well. Those that your corp didn't issued shouldn't be shown. If they do then it's an API bug.
Then again API doesn't have Alliance API calls and no Alliance CEO or Director could then see the Alliance contracts in whole.
Get the point?
Ajurna Jakar
Jian Products Engineering Group
#9 - 2012-04-11 12:49:27 UTC
i do, i just wanted to make a thread about it to see if a dev or something could take a look and either remove alliance contracts or allow corps to pull the items. i'm quite aware there is no current workaround. atm im currently filtering our the alliance contracts, but would love to include them.

http://eve-corp-management.org/