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 Information Portal

 
  • Topic is locked indefinitely.
 

Dev blog: Upcoming API Changes for Industry

First post First post
Author
Ydnari
Estrale Frontiers
#61 - 2014-06-28 23:53:48 UTC
Pania Templarus wrote:
CCP FoxFour wrote:
Pania Templarus wrote:
Sisi: char/IndustryJobsHistory and char/IndustryJobs are both only returning 500 errors (to me?).

Have the parameters changed or are they 'keyID', 'vCode' and 'characterID' still?


Oh, please tell Scotty he needs to grow some thicker skin and get over it!


No, those parameters should be the same. You will need to generate new API keys on Sisi: community.testeveonline.com/support/api-key

Fresh key and I"m still getting the same 500 (Scotty hates me) error. Other endpoints work okay so it's him not me (this time).



Same

It was working (at least, empty resultset) when I had no jobs, started a job, called it again (long after cache expired) and get "General Error: Scotty the docking manager heard you were talking **** about him behind his back and refuses to service your request.".

--

CCP FoxFour
C C P
C C P Alliance
#62 - 2014-06-29 00:12:36 UTC
Ydnari wrote:
Pania Templarus wrote:
CCP FoxFour wrote:
Pania Templarus wrote:
Sisi: char/IndustryJobsHistory and char/IndustryJobs are both only returning 500 errors (to me?).

Have the parameters changed or are they 'keyID', 'vCode' and 'characterID' still?


Oh, please tell Scotty he needs to grow some thicker skin and get over it!


No, those parameters should be the same. You will need to generate new API keys on Sisi: community.testeveonline.com/support/api-key

Fresh key and I"m still getting the same 500 (Scotty hates me) error. Other endpoints work okay so it's him not me (this time).



Same

It was working (at least, empty resultset) when I had no jobs, started a job, called it again (long after cache expired) and get "General Error: Scotty the docking manager heard you were talking **** about him behind his back and refuses to service your request.".


Well ****. I will look into it on Monday.

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

CCP FoxFour
C C P
C C P Alliance
#63 - 2014-07-01 12:57:46 UTC
A fix has been deployed to Sisi and the cache cleared. Please try again and let me know if there are any more problems. :)

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Pania Templarus
Viziam
Amarr Empire
#64 - 2014-07-02 23:49:39 UTC
CCP FoxFour wrote:
A fix has been deployed to Sisi and the cache cleared. Please try again and let me know if there are any more problems. :)

Endpoint is working again, thanks!

However...and I think this might have been brought up already....the date format is different.
CCP FoxFour
C C P
C C P Alliance
#65 - 2014-07-03 10:51:42 UTC  |  Edited by: CCP FoxFour
Pania Templarus wrote:
CCP FoxFour wrote:
A fix has been deployed to Sisi and the cache cleared. Please try again and let me know if there are any more problems. :)

Endpoint is working again, thanks!

However...and I think this might have been brought up already....the date format is different.


Derp. No one had pointed that out to me yet. Fixing now, will deploy a fix in a few minutes.

Deployed and cache cleared. Please give it a shot and let me know everything is OK. :)

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Pania Templarus
Viziam
Amarr Empire
#66 - 2014-07-03 16:47:54 UTC
CCP FoxFour wrote:
Pania Templarus wrote:
CCP FoxFour wrote:
A fix has been deployed to Sisi and the cache cleared. Please try again and let me know if there are any more problems. :)

Endpoint is working again, thanks!

However...and I think this might have been brought up already....the date format is different.


Derp. No one had pointed that out to me yet. Fixing now, will deploy a fix in a few minutes.

Deployed and cache cleared. Please give it a shot and let me know everything is OK. :)

Looks good to me. Cool
CCP FoxFour
C C P
C C P Alliance
#67 - 2014-07-03 16:50:04 UTC
Pania Templarus wrote:
CCP FoxFour wrote:
Pania Templarus wrote:
CCP FoxFour wrote:
A fix has been deployed to Sisi and the cache cleared. Please try again and let me know if there are any more problems. :)

Endpoint is working again, thanks!

However...and I think this might have been brought up already....the date format is different.


Derp. No one had pointed that out to me yet. Fixing now, will deploy a fix in a few minutes.

Deployed and cache cleared. Please give it a shot and let me know everything is OK. :)

Looks good to me. Cool


:D Awesome. Thank you for pointing that out to be, it's greatly appreciated.

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Ydnari
Estrale Frontiers
#68 - 2014-07-03 22:17:18 UTC  |  Edited by: Ydnari
Just had a chance to look at this so I can update my code as I use the existing industry API a lot.

The old API has ME and PE of the blueprint in the job. The new one doesn't - can we have them back please?

This is useful for:

  • material efficiency research - so you can see what level it came from, add the "runs" for the new one
  • time efficiency research - the same
  • invention (showing the output ME/TE since input is not relevant) so you can see what your BPCs are going to be for planning your builds
  • manufacturing - so you can work out the amount of input materials that were consumed, so it can be knocked out of stock management tables (after any adjustment for teams via the ID which I believe can then be looked up on the new CREST API?) Although an effective ME on the row after everything taken into account would be good too; the old one had structure and char skill modifiers on it so you had everything you needed to work it out.

Invention success status is also gone but I think that's already been requested.

Is there a problem with Invention jobs showing? I started an invention job for corp on sisi (a Maulus -> Keres, in a POS in Old Man Star) and fetched the corp/IndustryJobs endpoint a couple of times over cache expires, and I'm still not seeing any activityID=8 rows. OK I see it now, although it was a 3-run output invention from the decryptor off a 1-run input, but it's showing:

licensedRuns="30"
probability="0"

... which don't look right?

(job ID 226180724)

--

CCP FoxFour
C C P
C C P Alliance
#69 - 2014-07-04 10:34:53 UTC
Ydnari wrote:
Just had a chance to look at this so I can update my code as I use the existing industry API a lot.

The old API has ME and PE of the blueprint in the job. The new one doesn't - can we have them back please?

This is useful for:

  • material efficiency research - so you can see what level it came from, add the "runs" for the new one
  • time efficiency research - the same
  • invention (showing the output ME/TE since input is not relevant) so you can see what your BPCs are going to be for planning your builds
  • manufacturing - so you can work out the amount of input materials that were consumed, so it can be knocked out of stock management tables (after any adjustment for teams via the ID which I believe can then be looked up on the new CREST API?) Although an effective ME on the row after everything taken into account would be good too; the old one had structure and char skill modifiers on it so you had everything you needed to work it out.

Invention success status is also gone but I think that's already been requested.

Is there a problem with Invention jobs showing? I started an invention job for corp on sisi (a Maulus -> Keres, in a POS in Old Man Star) and fetched the corp/IndustryJobs endpoint a couple of times over cache expires, and I'm still not seeing any activityID=8 rows. OK I see it now, although it was a 3-run output invention from the decryptor off a 1-run input, but it's showing:

licensedRuns="30"
probability="0"

... which don't look right?

(job ID 226180724)


Your request for ME/TE is understandable, but we would rather leave it out of this endpoint. In August we will be releasing a new endpoint that specifically lists every blueprint you own, and another endpoint for corp. You can then just take the blueprintID from the jobs endpoint and match it to one from the blueprints endpoint. I really wanted to get this out for the Crius release but just didn't have time and I go on vacation tomorrow. I will be back on the 28th and blueprints is the top of my list.

Took a quick look, didn't have time to dig into the probability part, but licensed runs is a bug. It's set to maxRuns or something but for invention that column should actually be null. Will roll out a fix for that and licensedRuns should be null by the time Crius hits.

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

CCP FoxFour
C C P
C C P Alliance
#70 - 2014-07-04 13:25:39 UTC
Vacation time for me. If you have any concerns about the Crius release and the EVE API see here: https://forums.eveonline.com/default.aspx?g=posts&m=4772531#post4772531

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

stoxxine
OLVI industries
#71 - 2014-07-08 11:19:26 UTC
CCP FoxFour wrote:

Your request for ME/TE is understandable, but we would rather leave it out of this endpoint. In August we will be releasing a new endpoint that specifically lists every blueprint you own, and another endpoint for corp.


How about optional items used? Or are we supposed to deduce that from the probability.. ouch.

Disclaimer: The above was probably written drunk or by a friend on my pc or a hacker. No warranty for any misinformation provided.

Comet Cruncher
Comet Tail Corp
#72 - 2014-08-05 22:40:10 UTC
One more thing for after your vacation ;-)

the corp/IndustryJobsHistory.xml.aspx returns a cachedUntil with the same value as the currentTime value - on the other side the previous posts indicated a 6 hour caching time - and I see that the items are not getting updated for some time.

Thus automated caching is impossible - could you please get the cachedUntil to the same +x hours value as the other endpoints provide the data as well.

Thanks

PS: looking forward for the blueprint stuff - please role out / provide the API data soon
CCP FoxFour
C C P
C C P Alliance
#73 - 2014-08-06 10:53:09 UTC
Comet Cruncher wrote:
One more thing for after your vacation ;-)

the corp/IndustryJobsHistory.xml.aspx returns a cachedUntil with the same value as the currentTime value - on the other side the previous posts indicated a 6 hour caching time - and I see that the items are not getting updated for some time.

Thus automated caching is impossible - could you please get the cachedUntil to the same +x hours value as the other endpoints provide the data as well.

Thanks

PS: looking forward for the blueprint stuff - please role out / provide the API data soon



Can you confirm this again please. When testing on Sisi, I get a proper cache time:

Quote:

eveapi version="2"
currentTime2014-08-06 10:50:08/currentTime
result
rowset name="jobs" key="jobID" columns="jobID,installerID,installerName,facilityID,solarSystemID,solarSystemName,stationID,activityID,blueprintID,blueprintTypeID,blueprintTypeName,blueprintLocationID,outputLocationID,runs,cost,teamID,licensedRuns,probability,productTypeID,productTypeName,status,timeInSeconds,startDate,endDate,pauseDate,completedDate,completedCharacterID"/
/result
cachedUntil2014-08-06 16:50:08/cachedUntil
/eveapi

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Dareth Astrar
Astrar Logistics and Engineering
#74 - 2014-08-06 12:31:10 UTC
CCP FoxFour wrote:
Scarna Jenari wrote:
No API for owned blueprint details?


Soon(tm)


It has been asked for for many many many years. I'm glad it's finally being considered. Smile
Comet Cruncher
Comet Tail Corp
#75 - 2014-08-06 22:35:49 UTC
Hi FoxFour,

I tested again on both Tranquility and on SiSi with requests like this
// by posting I get all the time error messages "no html"...; so I shortened all now to the bare minimum and had to replace the brackets:
corp/IndustryJobsHistory


and I get this

[currentTime]2014-08-06 21:31:48[/currentTime]
[cachedUntil]2014-08-06 21:31:48[/cachedUntil]


Thanks for your support
Ydnari
Estrale Frontiers
#76 - 2014-08-06 23:19:56 UTC  |  Edited by: Ydnari
I don't know what the pattern is, but I am also seeing this on /some/ corp/IndustryJobsHistory and corp/IndustryJobs results on TQ - not all though.

currentTime == cachedUntil

2 out of 7 showing it in my pheal cache, the rest show sensible cache timers.

Re-confirmed by fetching the same result by hand in browser; I've got a new current/cached pair, but they're equal again.


Well that'd explain why these two jobs are running on every single API fetch cycle... but hey I'm following cache timers like a good API citizen...

--

CCP FoxFour
C C P
C C P Alliance
#77 - 2014-08-07 09:44:31 UTC
Ydnari wrote:
I don't know what the pattern is, but I am also seeing this on /some/ corp/IndustryJobsHistory and corp/IndustryJobs results on TQ - not all though.

currentTime == cachedUntil

2 out of 7 showing it in my pheal cache, the rest show sensible cache timers.

Re-confirmed by fetching the same result by hand in browser; I've got a new current/cached pair, but they're equal again.


Well that'd explain why these two jobs are running on every single API fetch cycle... but hey I'm following cache timers like a good API citizen...


Yea, not going to get mad at anyone for doing what they are supposed to. I really do appreciate all the effort in helping me understand this. Will do some more digging today to figure out whats going on.

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.

Zifrian
The Frog Pond
Ribbit.
#78 - 2014-08-09 11:24:42 UTC  |  Edited by: Zifrian
Finally getting a chance to test the industry api out and the invention jobs seem funky. I have completed 10 jobs but the completed time is still 0, completedcharacterID = 0, and the status = 1 (not sure of all the status codes either).

Also, the output item type is 0 for both completed and ongoing invention jobs. I guess for ongoing that's fine but completed should tell me something about what happened? Some BPCs can produce two different items.

Other things:
- The probability on invention jobs is zero? When would this field get filled?
- No ME/TE on the resulting blueprint allows no way to see what decryptors were used for invention. I don't see anywhere I can get this information like I could in the old system.
- licensedRuns - what does this output for different jobs? I see above this should be null for invention but I'm not sure why or how this matches with the runs field. Is there a way to tell how many runs I have on the output BPC?
- Is status working? I keep getting 0 or 104 for all jobs. What are the possible codes?

Finally, on the corp/Facilities, which API AccessMask allows access to view this information? It doesn't seem to fit with the ones listed under Outposts and Starbases. Science and Industry only has IndustryJobs. I can get the data using the IndustryJobs mask I have now but not sure if that's intended or working properly. Also, what is starbaseModifier for or what is it supposed to show? I get nothing but 0's for all Outposts and POS arrays.

Thanks

Maximze your Industry Potential! - Download EVE Isk per Hour!

Import CCP's SDE - EVE SDE Database Builder

Ydnari
Estrale Frontiers
#79 - 2014-08-09 17:46:53 UTC
Zifrian wrote:
Finally getting a chance to test the industry api out and the invention jobs seem funky. I have completed 10 jobs but the completed time is still 0, completedcharacterID = 0, and the status = 1 (not sure of all the status codes either).

Also, the output item type is 0 for both completed and ongoing invention jobs. I guess for ongoing that's fine but completed should tell me something about what happened? Some BPCs can produce two different items.

Other things:
- The probability on invention jobs is zero? When would this field get filled?
- No ME/TE on the resulting blueprint allows no way to see what decryptors were used for invention. I don't see anywhere I can get this information like I could in the old system.
- licensedRuns - what does this output for different jobs? I see above this should be null for invention but I'm not sure why or how this matches with the runs field. Is there a way to tell how many runs I have on the output BPC?
- Is status working? I keep getting 0 or 104 for all jobs. What are the possible codes?

Invention took quite a few hits by the API being changed, all this information we used to have is lost. The new blueprints API is also on a long timer, which is fine for long-standing BPOs, but is of less use for inventors who work with transient copies.

--

CCP FoxFour
C C P
C C P Alliance
#80 - 2014-08-09 20:25:07 UTC
The bug with probability will be fixed with Hyperion.
ME/TE will have to come from the blueprints API endpoint which is coming in Hyperion.
The outputProductID will only exist in completed jobs. Not sure why you are not getting it for completed jobs. Will try and do some digging. If you don't hear anything yell at me in the tech lab forums.
I will double check about the status thing as well.

Thanks for all your patience guys. :)

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.