open All Channels
seplocked EVE Technology Lab
blankseplocked Contract API info
 
This thread is older than 90 days and has been locked due to inactivity.


 
Author Topic

CCP Elerhino


Minmatar
C C P
C C P Alliance
Posted - 2011.08.09 18:32:00 - [1]
 

So yeah, we've decided to keep the current implementation of the contract API as described in my latest devblog. We feel that it's a pretty good compromise between what we want to do and what we can do. Here are the pages you might want to take a look at on apitest.eveonline.com:

- char/Contracts.xml.aspx: A list of recent and active contracts.
- char/ContractBids.xml.aspx: A list of recent bids made to the character's contracts.
- char/ContractItems.xml.aspx: A list of items that belong to a contract.

All pages also have a corporation counterpart in the corp/ folder but they're only accessible using a corporation key.

Callean Drevus
Caldari
Icosahedron Crafts and Shipping
Silent Infinity
Posted - 2011.08.09 20:16:00 - [2]
 

Awesome!

Ydnari
Gallente
Estrale Frontiers
Posted - 2011.08.09 21:21:00 - [3]
 

Getting 203 Authentication Failure, figured it might be because I need one of the new style keys? But http://supporttest.eveonline.com/ is unavailable too, fails with:

"Cannot open database "ebs_Singularity" requested by the login. The login failed.
Login failed for user 'websupport'."

CCP Stillman

Posted - 2011.08.10 01:51:00 - [4]
 

Originally by: Ydnari
Getting 203 Authentication Failure, figured it might be because I need one of the new style keys? But http://supporttest.eveonline.com/ is unavailable too, fails with:

"Cannot open database "ebs_Singularity" requested by the login. The login failed.
Login failed for user 'websupport'."

I'm really sorry about that. We'll fix that tomorrow. It is happening because we applied a new mirror to SISI.

Thanks for making us aware Very Happy

Locin WeEda
Gallente
Red Frog Investments
Posted - 2011.08.10 23:31:00 - [5]
 

Is api-page to look at a particular contract, given its contractID ready yet, or are you still working on that?

CCP Elerhino


Minmatar
C C P
C C P Alliance
Posted - 2011.08.11 15:16:00 - [6]
 

Originally by: Locin WeEda
Is api-page to look at a particular contract, given its contractID ready yet, or are you still working on that?


You should be able to use the contracts.xml.aspx pages with a contractID parameter to get a single contract.

Ydnari
Gallente
Estrale Frontiers
Posted - 2011.08.11 16:27:00 - [7]
 

/char/Contracts.xml.aspx failing with:

Quote received and removed by request. Zymurgist

Also tried /char/CharacterSheet.xml.aspx and got the same error.

CCP Stillman

Posted - 2011.08.11 17:43:00 - [8]
 

Originally by: Ydnari
/char/Contracts.xml.aspx failing with:

Quote received and removed by request. Zymurgist

Also tried /char/CharacterSheet.xml.aspx and got the same error.

Yup, fixed. Another deployment gone wrong Razz

Ydnari
Gallente
Estrale Frontiers
Posted - 2011.08.11 19:04:00 - [9]
 

OK, looking pretty useful so far, but one thing I was hoping for was a listing of items in Open and In Progress courier contracts.

I totally understand that we can't get it for completed ones as the plastic wrap disappears, but surely there's a direct link between open couriers and the plastic wrap object, so the contents can be queried?

I logged on to SiSi and created a new courier contract, but I get <error code="134">Invalid or missing contractID.</error> when using ContractItems, the same as with finished couriers.

This would be really quite useful - supplies go "off the books" when they're in couriers, so when you've got more than one person in a corp buying materials for industrial activities then it can be hard to really work out what's already been bought but is just in transit, and similar for the products being couriered to market.

Ydnari
Gallente
Estrale Frontiers
Posted - 2011.08.11 19:07:00 - [10]
 

Accepting comma-separated lists of contractIDs for ContractItems would save multiple round-trips (and presumably re-validations of keys on your end), and would be consistent with the NotificationTexts API and other APIs that accept lists like that.

Ryomanni
Red Frog Investments
Posted - 2011.08.12 01:32:00 - [11]
 

/corp/contracts.xml.aspx seems to be working again, and it now includes one month worth of data. I was able to parse all 3,814 rows with no errors (I think) - so far so good!

One glitch / error I noticed is each data row contains an element named "availability", but it is not listed in the rowset data.

Also on contractItems.xml.aspx, the rowset data includes a "rawQuantity" column, but it does not appear in the data as an element.

CCP Elerhino


Minmatar
C C P
C C P Alliance
Posted - 2011.08.12 12:17:00 - [12]
 

Originally by: Ryomanni
One glitch / error I noticed is each data row contains an element named "availability", but it is not listed in the rowset data.

Also on contractItems.xml.aspx, the rowset data includes a "rawQuantity" column, but it does not appear in the data as an element.


The "availability" issue is a defect and has been fixed, the fix will be included in the next roll-out. Thanks for the headsup. Very Happy

The rawQuantity column is an optional one, it appears when the item is a singleton (-1) or a blueprint copy (-2).

CCP Elerhino


Minmatar
C C P
C C P Alliance
Posted - 2011.08.12 12:25:00 - [13]
 

Originally by: Ydnari
Accepting comma-separated lists of contractIDs for ContractItems would save multiple round-trips (and presumably re-validations of keys on your end), and would be consistent with the NotificationTexts API and other APIs that accept lists like that.


That's a good point, we'll look into that. Very Happy

As for not displaying items for courier contracts - this is something we wanted to re-iterate on when we get everyone involved back from summer holidays Cool, we'll keep you posted on any changes there.

CCP Stillman

Posted - 2011.08.12 14:57:00 - [14]
 

Some fixes were deployed to APITest.

Vessper
Indicium Technologies
Hephaestus Forge Alliance
Posted - 2011.08.13 12:52:00 - [15]
 

Getting nothing but the Scotty error when trying to look at ContractBids.xml.aspx that should have some data.

<eveapi version="2">
<currentTime>2011-08-13 12:46:12</currentTime>
<error code="0">General Error: Scotty the docking manager heard you were talking **** about him behind his back and refuses to service your request.</error>
<cachedUntil>2011-08-13 13:46:12</cachedUntil></eveapi>

Seems to return a valid XML file when there are no bids though.

Dragonaire
Caldari
Corax.
PURgE Alliance
Posted - 2011.08.14 07:46:00 - [16]
 

Thought I'd add a note here about something I ran across with AssetList since the only place I really found anything talking about rawQuantity is here in this thread about Contracts API during search. They seem to have also added rawQuantity to AssetList as optional attribute just like in Contracts. Hope this helps anyone else doing a search about it Wink

Vessper
Indicium Technologies
Hephaestus Forge Alliance
Posted - 2011.08.26 18:57:00 - [17]
 

Courier contracts should really have as associated ContractItems XML to list those items that are being transported. Currently, an error code is returned:

<error code="134">Invalid or missing contractID.</error>

Vessper
Indicium Technologies
Hephaestus Forge Alliance
Posted - 2011.08.26 19:21:00 - [18]
 

Another problem I've found: if you issue a contract for a corp, then the contract becomes listed under the API of the character that issues the contract rather than under the corp contracts API. And related to that, the corresponding ContractItems also falls under the character and not the corp.


Johnathan Roark
Caldari
The Graduates
Morsus Mihi
Posted - 2011.08.27 04:37:00 - [19]
 

Originally by: CCP Elerhino
So yeah, we've decided to keep the current implementation of the contract API as described in my latest devblog. We feel that it's a pretty good compromise between what we want to do and what we can do. Here are the pages you might want to take a look at on apitest.eveonline.com:

- char/Contracts.xml.aspx: A list of recent and active contracts.
- char/ContractBids.xml.aspx: A list of recent bids made to the character's contracts.
- char/ContractItems.xml.aspx: A list of items that belong to a contract.

All pages also have a corporation counterpart in the corp/ folder but they're only accessible using a corporation key.



Any plans to add accessMask for the other two? Every other call has its own access mask, would be nice if things where consistent?

Ron Jeremy H
Posted - 2011.08.31 13:40:00 - [20]
 

anyone else getting error 203 on char/Contracts.xml.aspx?

Mark Hampton
Posted - 2011.09.01 19:26:00 - [21]
 

I get auth failure on any calls to apitest.eveonline.com

Locin WeEda
Gallente
Red Frog Investments
Posted - 2011.09.02 05:39:00 - [22]
 

I want to thank CCP Elerhino, CCP Stillman and any other CCP dev that have worked on the contract API. So far it works great.

Here is a little screenshot of our first internal application developed on launch day. It sorts all our contracts based on distance from the input solar system, with the oldest contracts on top if there are multiple contracts within the same amount of jumps.

We would however like to see the time between api calls go down to somewhere between 5-15 minutes, at least for contracts that have changed status recently. Currently we need to wait up to an hour before an accepted contract can be removed from our contract list on the webpage.

Link to screenshot:

https://picasaweb.google.com/lh/photo/dYoJ8EugBfjOFwaiBG1CqKiL1XCWKGTAdJR5n8gKxG8?feat=directlink

So, again, thank you for finally getting the contract api done. I have waited years for this ;)

CCP Atlas

Posted - 2011.09.02 11:09:00 - [23]
 

Originally by: Locin WeEda
I want to thank CCP Elerhino, CCP Stillman and any other CCP dev that have worked on the contract API. So far it works great.

Here is a little screenshot of our first internal application developed on launch day. It sorts all our contracts based on distance from the input solar system, with the oldest contracts on top if there are multiple contracts within the same amount of jumps.

We would however like to see the time between api calls go down to somewhere between 5-15 minutes, at least for contracts that have changed status recently. Currently we need to wait up to an hour before an accepted contract can be removed from our contract list on the webpage.

Link to screenshot:

https://picasaweb.google.com/lh/photo/dYoJ8EugBfjOFwaiBG1CqKiL1XCWKGTAdJR5n8gKxG8?feat=directlink

So, again, thank you for finally getting the contract api done. I have waited years for this ;)


That's fantastic to see. Great to hear that this is useful to you. It's possible that the cache timers will be modified but we want to see how it behaves first.

Keep on truckin. ugh


 

This thread is older than 90 days and has been locked due to inactivity.


 


The new forums are live

Please adjust your bookmarks to https://forums.eveonline.com

These forums are archived and read-only