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 regarding contracts available to Alliances

Author
Zarek RedHill
State War Academy
Caldari State
#1 - 2015-09-24 04:02:50 UTC
Hello!

I've been looking at the XML API regarding contracts, and so far I've established that I can query contracts that I have created (or contracts created on behalf of my corp if I have the Roles for it).

I am wondering if there is a way for me to query the list of contracts that are available to anyone in my alliance. In other words, the programmatic equivalent of going into the "Available Contracts" tab and picking "My Alliance" under Availability. screenshot

(the screenshot happens to have "Current Station" selected -- that would be helpful but not a deal breaker for me)

Thanks -- and please excuse any misconduct -- I am just now starting to look into this API stuff.
-Z

Captain Thunk
Explode. Now. Please.
Alliance. Now. Please.
#2 - 2015-09-24 07:57:01 UTC  |  Edited by: Captain Thunk
Zarek RedHill wrote:
Hello!

I've been looking at the XML API regarding contracts, and so far I've established that I can query contracts that I have created (or contracts created on behalf of my corp if I have the Roles for it).

I am wondering if there is a way for me to query the list of contracts that are available to anyone in my alliance. In other words, the programmatic equivalent of going into the "Available Contracts" tab and picking "My Alliance" under Availability. screenshot

(the screenshot happens to have "Current Station" selected -- that would be helpful but not a deal breaker for me)

Thanks -- and please excuse any misconduct -- I am just now starting to look into this API stuff.
-Z



The contracts that have the AssigneeID that match the Alliance is what you're looking for

AssigneeID is the scope of who can see it, like characterID if direct or corporationID/allianceID

If you're in an alliance and pull your contracts, you know that everyone else in the alliance will be seeing the same contracts where the assigneeID is the allianceID

More info: http://wiki.eve-id.net/APIv2_Char_Contracts_XML
Zarek RedHill
State War Academy
Caldari State
#3 - 2015-09-24 17:28:40 UTC
This is true, but the API call only shows the alliance contracts that I issued to the alliance (assuming I supplied my character id and api info).

My question is whether it's possible to see ALL contracts issued to my alliance -- whether by me or anyone else -- without having access to each alliance member's API. (note I can already access this information in game, so it should not be a security issue)
Captain Thunk
Explode. Now. Please.
Alliance. Now. Please.
#4 - 2015-09-24 17:54:15 UTC
Either you're doing it wrong or you need to use /corp/Contracts

I'm p.sure it's the former and they are there in your char version, but I don't have time to check right now.

If it's been issued to the alliance, any char should see it - it would be in their list.
Zarek RedHill
State War Academy
Caldari State
#5 - 2015-09-24 21:15:40 UTC  |  Edited by: Zarek RedHill
corp/Contracts shows the contracts issued by the Corp by a director/contract manager.

I'm pretty sure I followed directions properly for /char/Contracts -- it just shows me every contract my character has ever issued or has in progress or outstanding. It does NOT show me what contracts my character can accept that have been issued to my alliance.

Once again, I'm looking for contracts issued by players other than myself or a corp that are available to anyone in my alliance.

-Z
Captain Thunk
Explode. Now. Please.
Alliance. Now. Please.
#6 - 2015-09-25 07:07:30 UTC
Check the raw XML because they're there.

That or there isn't any contracts issued to alliance (there is according to your SS)

Zarek RedHill
State War Academy
Caldari State
#7 - 2015-09-25 17:16:36 UTC
It is NOT in the xml. Once again, please read my question more carefully. I don't think you understand it. Here is the specific scenario I am interested in.

Player A is part of Corporation A, and Player B is part of Corporation B -- both in the same alliance.
Player A issues a contract to the alliance. The contract is now visible to player B under "My Alliance" availability.

How can player B -- using Player B's API info -- query for that contract?

-Z
Captain Thunk
Explode. Now. Please.
Alliance. Now. Please.
#8 - 2015-09-25 18:11:29 UTC
Zarek RedHill wrote:
It is NOT in the xml. Once again, please read my question more carefully. I don't think you understand it. Here is the specific scenario I am interested in.

Player A is part of Corporation A, and Player B is part of Corporation B -- both in the same alliance.
Player A issues a contract to the alliance. The contract is now visible to player B under "My Alliance" availability.

How can player B -- using Player B's API info -- query for that contract?

-Z


You need a CAK for each of the corps with the contracts bitmask and pull them all.

They're all in there, search for the assigneeID = allianceID
Zarek RedHill
State War Academy
Caldari State
#9 - 2015-09-25 18:19:42 UTC
Bummer! I was hoping I'd be able to query the stuff w/o the CAKs since I can query those in game from my character without them.

Anyway, thanks for following up, Thunk!
-Z