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.
 

receive active industry jobs from api?

Author
Sangard
Bunny Industry Group
#1 - 2011-09-08 09:16:15 UTC  |  Edited by: Sangard
Hey api specialists,

I have a little problem and hope somebody can help me with that.

I'd like to receive data from my assets and industry jobs via api to count my assets in stock and those currently in work.

getting assets in stock works fine. But for industry jobs I get only a list of the old (deliverd) jobs and not for those which are active.
Also, it seems that the list ignors my outputtypeid (= item id) cause if I use another id nothing changes.

code:

=importXML("https://api.eveonline.com/char/IndustryJobs.xml.aspx?userID="&M3&"&apiKey="&M2&"&characterID="&M4&"", "//row[@outputtypeid="&B2&"] | //@runs | //@endproductiontime")

Any help would be great.

thank you and regards, Sangard

PS: I'm not a xpath and eve api crack. so please explain it simple Roll
Sangard
Bunny Industry Group
#2 - 2011-09-08 10:40:17 UTC
found my mistake and got this one working (problem was corp and char jobs and using | for all child elements):


=importXML("https://api.eveonline.com/corp/IndustryJobs.xml.aspx?userID="&M3&"&apiKey="&M2&"&characterID="&M4&"", "//row[@outputtypeid="&B2&" and @completed=0]/@runs")