Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 30 .. 30 :: one page |
|
Author |
Thread Statistics | Show CCP posts - 184 post(s) |
|
CCP FoxFour
C C P C C P Alliance
3773
|
Posted - 2014.12.11 13:59:35 -
[691] - Quote
Brian Paignton wrote:Hi, I read this in the Rhea patch notes... Quote:Exposed the ItemCategories, ItemCategory, ItemGroups, ItemGroup, ItemTypes, and ItemType resources for inventory data. These resources are available in public CREST. So I went to https://public-crest.eveonline.com/ which gave me a REST endpoint of https://public-crest.eveonline.com/types/ which can be called. So I tried to access this to get a list of all the items but got the following error... Quote:{ "message": "The route was not found", "key": "routeMissing", "exceptionType": "NotFoundError" } So I then tried going through the industry groups... https://public-crest.eveonline.com/inventory/groups/28/ ... which gave me an new end point of ... https://public-crest.eveonline.com/types/648/ ... but that also gave me the same error about a missing route. Am I doing something wrong or is this data just not available yet? I can lift all of this from the SDE but its way more convenient to get it from CREST if it is going to be available there. Thanks.
Welp. Try now. :)
@CCP_FoxFour // Technical Designer // Team Size Matters
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
|
|
Brian Paignton
White Flame Enterprises
0
|
Posted - 2014.12.11 16:07:25 -
[692] - Quote
Thanks. Much better! However, the feed seems to be missing a number of types. I could not find...
Viator Anshar Obelisk (thinking that an Anshar possibly used the Obelisk typeId)
Is the feed complete?
Thanks again. |
Querns
GBS Logistics and Fives Support Goonswarm Federation
1235
|
Posted - 2014.12.11 16:25:30 -
[693] - Quote
CCP FoxFour wrote: For your concerns of mobile power consumption: Once Authed CREST is out with actual private data, I hardly see people using Public CREST on mobile. They would be getting private data through Authed CREST. If you are getting private data from Authed CREST it's not worth the added complexity of getting data from both Authed and Public CREST. Add in some basic client side caching, and things should be fine on mobile. Public CREST will mainly be used by... well I am not entirely sure at this point now that Authed CREST is out with a much higher rate limit.
Unauthenticated CREST is still very useful for the client-side code on a website. For example, since CORS headers are being sent, it's very feasible for the client javascript portion of a site to rely on unauthenticated CREST to fetch things like solar system data and type names directly from CREST without having to expose the developer's authentication credentials. Stuff like this is important to me because my primary development is for sites that use AngularJS, which tend towards very light server-side implementations and heavy client implementations.
This post was crafted by the wormhole expert of the Goonswarm Economic Warfare Cabal, the foremost authority on Eve: Online economics and gameplay.
|
Cor'len
Remnant of an Empire Independent Stars Allied Forces
8
|
Posted - 2014.12.11 18:28:06 -
[694] - Quote
Hey, CCP Foxfour!
Could you take a look at the cache timer for the MemberTrackingExtended API call? You mentioned that you'd look into reducing it a few months ago, and it'd be very convenient if you could do just that. ;)
|
Drailen
New Eden Technology Services
79
|
Posted - 2014.12.11 22:06:36 -
[695] - Quote
I've seen several posts indicating that the CREST root should provide the URIs of all the available endpoints but I can't seem to see the killmail endpoint listed anywhere in the root.
Should it be in there?
|
Kali Izia
GoomWaffe Goonswarm Federation
26
|
Posted - 2014.12.12 07:05:52 -
[696] - Quote
Drailen wrote:I've seen several posts indicating that the CREST root should provide the URIs of all the available endpoints but I can't seem to see the killmail endpoint listed anywhere in the root.
Should it be in there?
It's not listed in the root because it's not something you would access directly. CREST links to killmails when you follow wars from the root (e.g. https://public-crest.eveonline.com/wars/398587/killmails/all/ is one that has kills). |
Drailen
New Eden Technology Services
79
|
Posted - 2014.12.12 11:21:50 -
[697] - Quote
Thanks for the reply.
I was looking to try and avoid hardcoded endpoints and rely on whatever the root returned, but it looks like at least non-war killmails and the market history will require fixed code as there is no reference to these that I could find.
|
|
CCP FoxFour
C C P C C P Alliance
3773
|
Posted - 2014.12.12 11:54:13 -
[698] - Quote
Drailen wrote:Thanks for the reply.
I was looking to try and avoid hardcoded endpoints and rely on whatever the root returned, but it looks like at least non-war killmails and the market history will require fixed code as there is no reference to these that I could find.
The market history stuff will probably be changed to match how the market orders works early next year.
@CCP_FoxFour // Technical Designer // Team Size Matters
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
|
|
Galattico Bontius
University of Caille Gallente Federation
0
|
Posted - 2014.12.13 16:59:00 -
[699] - Quote
Does Thera have a system costIndex? The CREST industry/systems systemCostIndicies endpoint doesn't seem to return Thera. |
|
CCP FoxFour
C C P C C P Alliance
3774
|
Posted - 2014.12.13 17:14:22 -
[700] - Quote
Galattico Bontius wrote:Does Thera have a system costIndex? The CREST industry/systems systemCostIndicies endpoint doesn't seem to return Thera.
Interesting... I am away on vacation now so cannot really look into it. I suggest poking @CCP_Nullarbor on twitter and pointing him this way.
@CCP_FoxFour // Technical Designer // Team Size Matters
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
|
|
|
Circumstantial Evidence
162
|
Posted - 2014.12.13 19:12:05 -
[701] - Quote
Galattico Bontius wrote:Does Thera have a system costIndex? The CREST industry/systems systemCostIndicies endpoint doesn't seem to return Thera. I wonder if it SHOULD (game design question. Perhaps some things are best known to the intrepid explorers who get there.) |
Steve Ronuken
Fuzzwork Enterprises Vote Steve Ronuken for CSM
4488
|
Posted - 2014.12.13 22:18:54 -
[702] - Quote
Circumstantial Evidence wrote:Galattico Bontius wrote:Does Thera have a system costIndex? The CREST industry/systems systemCostIndicies endpoint doesn't seem to return Thera. I wonder if it SHOULD (game design question. Perhaps some things are best known to the intrepid explorers who get there.)
That's one of the reasons none of the other wormhole places have them. visible via the API
Woo! CSM 9!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
|
Max Kolonko
WATAHA. Unseen Wolves
492
|
Posted - 2014.12.13 23:55:17 -
[703] - Quote
If I go to:
https://public-crest.eveonline.com/
And follow link to:
https://public-crest.eveonline.com/regions/
And follow to:
https://public-crest.eveonline.com/regions/10000002/
And want to follow to (i'm getting item type link also following the CREST resources):
https://public-crest.eveonline.com/market/10000002/orders/buy/?type=https://public-crest.eveonline.com/types/185/
I get this error:
{ "message": "The route was not found", "key": "routeMissing", "exceptionType": "NotFoundError" }
Read and support:
Don't mess with OUR WH's
What is Your stance on WH stuff?
|
Steve Ronuken
Fuzzwork Enterprises Vote Steve Ronuken for CSM
4488
|
Posted - 2014.12.14 00:07:50 -
[704] - Quote
Public crest doesn't allow you to get to the market orders. you have to do that with authenticated crest.
Woo! CSM 9!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
|
Max Kolonko
WATAHA. Unseen Wolves
492
|
Posted - 2014.12.14 00:50:18 -
[705] - Quote
Steve Ronuken wrote:Public crest doesn't allow you to get to the market orders. you have to do that with authenticated crest.
so why is crest pointing me to public-crest.evo link?
Read and support:
Don't mess with OUR WH's
What is Your stance on WH stuff?
|
Steve Ronuken
Fuzzwork Enterprises Vote Steve Ronuken for CSM
4488
|
Posted - 2014.12.14 01:44:03 -
[706] - Quote
Max Kolonko wrote:Steve Ronuken wrote:Public crest doesn't allow you to get to the market orders. you have to do that with authenticated crest. so why is crest pointing me to public-crest.evo link?
The public crest endpoint is.
The public crest endpoint is somewhat of a hack.
if you use crest-tq.eveonline.com you'll get what you should.
Woo! CSM 9!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
|
Max Kolonko
WATAHA. Unseen Wolves
492
|
Posted - 2014.12.14 06:49:20 -
[707] - Quote
Steve Ronuken wrote:Max Kolonko wrote:Steve Ronuken wrote:Public crest doesn't allow you to get to the market orders. you have to do that with authenticated crest. so why is crest pointing me to public-crest.evo link? The public crest endpoint is. The public crest endpoint is somewhat of a hack. if you use crest-tq.eveonline.com you'll get what you should.
Ok good to know. Why there is no info on that? Why there is no URL's related to crest on developers page CREST article? Why I have to ask those question in a forum?
Read and support:
Don't mess with OUR WH's
What is Your stance on WH stuff?
|
Max Kolonko
WATAHA. Unseen Wolves
492
|
Posted - 2014.12.14 07:09:02 -
[708] - Quote
Ok I got the response but I need to know what is the response format. I got binary data as response instead of plaintext, so I assume its gzip or something?
I'm trying to do this in RStudio and like I wrote already managed to get what I think is valid response:
Response [https://crest-tq.eveonline.com/market/10000002/orders/buy/?type=https://crest-tq.eveonline.com/types/185/] Date: 2014-12-14 08:05 Status: 200 Content-type: application/vnd.ccp.eve.MarketOrderCollection-v1+json; charset=utf-8 Size: 7.61 kB [BINARY BODY]
Read and support:
Don't mess with OUR WH's
What is Your stance on WH stuff?
|
Max Kolonko
WATAHA. Unseen Wolves
492
|
Posted - 2014.12.14 09:30:01 -
[709] - Quote
Like I wrote in last post here is short R code for accessing CREST market Data. At this point it does not look trouch crest tfor valid URL's.
URL's I sued was aquired by hand going trough crest in browser :)
IMPORTANT NOTE: to use oauth in R You have to set following as callback url in You app settings on developers site:
http://localhost:1410/
Here is my R code i used to extract data from market:
library(httr) myapp <- oauth_app("my app name redacted", "my id redacted", "my secret redacted") eve_token <- oauth2.0_token(oauth_endpoint(authorize = "https://login-tq.eveonline.com/oauth/authorize/",access = "https://login-tq.eveonline.com/oauth/token/"), myapp, scope = "publicData") token <- config(token = eve_token) req <- GET("https://crest-tq.eveonline.com/market/10000002/orders/buy/?type=https://crest-tq.eveonline.com/types/185/", token) result <- content(req, type = "application/json; charset=utf-8")
result now contains first page of market orders for what i recal was EMP S in Forge. Still need to figure out how to deal with pages, once I'm done with it i will update the code and maybe link it on github
Read and support:
Don't mess with OUR WH's
What is Your stance on WH stuff?
|
Max Kolonko
WATAHA. Unseen Wolves
492
|
Posted - 2014.12.14 18:21:38 -
[710] - Quote
https://github.com/Tetlanesh/r_eve_crest
its in "working" state. It will prompt You for login, handle Your refresh token (at least during single R session) and will follow CREST endpoint href links so if something changes in url it will still work.
There is no chaching for now, no depreciation headers checking (i dont even know how it works yet) and no error handling
Very easy to use:
token<-SETEVE("yourappname", "yourclientid", "yoursecret") orders<-GETEVE_marketorders("The Forge","Moros Blueprint",token)
This will produce list of two data frames: buy and sell orders
note: I'm playing with this while I'm learning R from scratch (my first "real" challange as oposed to examples from my course) so a lot of this might be done much better, faster, cheaper, etc...
Read and support:
Don't mess with OUR WH's
What is Your stance on WH stuff?
|
|
Steve Ronuken
Fuzzwork Enterprises Vote Steve Ronuken for CSM
4491
|
Posted - 2014.12.14 21:50:28 -
[711] - Quote
The Content-Type is used to specify specific version of the data returned (Well, the Accept header is. The content-type header is the response for that.
Woo! CSM 9!
Fuzzwork Enterprises
Twitter: @fuzzysteve on Twitter
|
Max Kolonko
WATAHA. Unseen Wolves
492
|
Posted - 2014.12.14 22:16:48 -
[712] - Quote
Steve Ronuken wrote:The Content-Type is used to specify specific version of the data returned (Well, the Accept header is. The content-type header is the response for that.
Whatever the intent is, R does not see it as JSON unless it have valid application/json content-type. I'm to new to this stuff to question it, that's what I observed. Luckily I can just tell it that its jason whatever the content-type is.
OR its just a problem with a binary response, where it have to be explicitly stated even if content-type was app/json?? like I said, I'm to new to both: OAUTH and R. I'm just glad that I managed to do something useful for me that actually works pretty stable so far :)
As I go along my course on R I might try to play with data from the market for some simple modeling and having it working from within R environment and not having to get the data from elsewhere is great as it speeds up analysis
Read and support:
Don't mess with OUR WH's
What is Your stance on WH stuff?
|
ISD Dorrim Barstorlode
ISD Community Communications Liaisons
3536
|
Posted - 2014.12.15 00:18:05 -
[713] - Quote
Removed a redundant post.
ISD Dorrim Barstorlode
Captain
Community Communication Liaisons (CCLs)
Interstellar Services Department
|
Aineko Macx
319
|
Posted - 2014.12.15 12:23:05 -
[714] - Quote
Aineko Macx wrote:https://public-crest.eveonline.com/market/prices/ is not returning data for typeID=34396 (Self-Assembling Nanolattice). This is a thing. Can't calculate Confessor builds atm because of the missing data.
iveeCore: PHP library for calculation of industrial activities, now with Rhea support
|
TheSmokingHertog
TALIBAN EXPRESS
264
|
Posted - 2014.12.15 18:02:14 -
[715] - Quote
[quote=Max Kolonko]Idea: ship/pos modules names in asset api
Description: right now its pita to get names for ships in sma's, poses and pos modules ang have the info all nameable item already in assets would be great
Post this here, then it will get the proper attention ;) |
Kali Izia
GoomWaffe Goonswarm Federation
28
|
Posted - 2014.12.16 05:36:39 -
[716] - Quote
Aineko Macx wrote:Aineko Macx wrote:https://public-crest.eveonline.com/market/prices/ is not returning data for typeID=34396 (Self-Assembling Nanolattice). This is a thing. Can't calculate Confessor builds atm because of the missing data. That's not really an API issue since the data isn't in-game either. I can't recall how often the prices get updated but it just means that script hasn't run yet. |
Epitropy
Vicis Inter Astrum I'd Rather Be Roaming
0
|
Posted - 2014.12.16 06:09:34 -
[717] - Quote
Is there documentation about the authentication process to access the publicData scope on auth'ed CREST? I'm looking for buy/sell orders. It seems to be different than the SSO protocol, as there wouldn't be a user login step. |
Kali Izia
GoomWaffe Goonswarm Federation
28
|
Posted - 2014.12.16 08:38:18 -
[718] - Quote
Epitropy wrote:Is there documentation about the authentication process to access the publicData scope on auth'ed CREST? I'm looking for buy/sell orders. It seems to be different than the SSO protocol, as there wouldn't be a user login step. You still need to authenticate as a user. You more or less follow the normal SSO steps once (I posted the exact differences here), after that you can store the refresh token and won't have to log in again.
For a server-side app that will only use public data, you can just log in yourself once and store your own refresh token if you don't want to make users log in. The refresh token doesn't expire and will stay valid unless you revoke access.
Once you have the refresh token, for any future calls you'll only need to call /oauth/token to get an access token. And then you can access the CREST resources. |
Ortho Loess
Volition Cult The Volition Cult
40
|
Posted - 2014.12.16 11:38:47 -
[719] - Quote
I've hit an issue with walking through CREST to get URIs, rather than constructing them.
I'm trying to get info about a system, given its ID (obtained from XML API). To get a URI for my system, I can go to the CREST root, find the regions endpoint, find the correct region, find the correct constellation, then the system will be one of the available hrefs.
Problem: I don't know the region or constellation, all I have is a solar system ID
It is trivial to construct a link to it. I can just go to /solarsystems/{id}
To do it without manually coding in that link would require either walking through to a random solarsystem and then doing string operations to extract the part I need from its URI, or walking through the entire universe map, and get all the solar systems into my own DB. In the second case I'll still have to do a string operation to extract the ID from the end of the href, as id does not seem to be returned anywhere.
Parsing the provided URIs to extract information seems even more likely to break and harder to bug-fix than just constructing the route.
I assume that finding details of a system by its id is something that should be easy from CREST, given that all the data is there and it must be a fairly common use. This is a very common use of the SDE (and would be trivial to accomplish), but I'm trying to move as much as I can away from SDE to CREST.
To me it seem like the easiest solution would be to add the solarsystems endpoint to the root list (and maybe give it an index)
Am I really stupidly missing something? |
Max Kolonko
WATAHA. Unseen Wolves
492
|
Posted - 2014.12.16 16:47:58 -
[720] - Quote
Same goes for items, regions, constelations, market groups, etc.
Read and support:
Don't mess with OUR WH's
What is Your stance on WH stuff?
|
|
|
|
|
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 30 .. 30 :: one page |
First page | Previous page | Next page | Last page |