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.
 

Help needed with Crest-API

First post
Author
Celebrin Dragonheart
White Dragons
#1 - 2015-02-02 13:21:30 UTC
Hey all,

I'm struggling a bit with the new market order CREST API and I'm hoping someone can give me a nudge in the right direction.... What?

What I'm trying to do is retrieve regional market orders for various items using the CREST API.

I've successfully authenticated through https://login-tq.eveonline.com and can call a number of the web services (e.g. https://crest-tq.eveonline.com/regions/ and https://crest-tq.eveonline.com/market/types/34/

However... when I try and call this;
https://crest-tq.eveonline.com/market/10000042/orders/sell/?type=https://crest-tq.eveonline.com/types/34/
I get a 401 Unauthorized response

My application is setup to use CREST APIs, and I'm assuming I'm using the correct SSO, and I'm assuming the link that I've built is correct but you know what they say about assumption...

Any help would be most appreciated!

Thanks in advance,
Celebrin
CCP FoxFour
C C P
C C P Alliance
#2 - 2015-02-02 14:09:45 UTC
Did you make sure to grant your application the publicData scope?

@CCP_FoxFour // Technical Designer // Team Tech Co

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

Celebrin Dragonheart
White Dragons
#3 - 2015-02-02 14:48:19 UTC
Hey FoxFour - thanks or the quick response :)

Just double checked and the publicData scope is listed under the 'requested scopes list' section.

Aineko Macx
#4 - 2015-02-02 16:28:16 UTC
When you redirect the client browser to the auth page to get the refresh token, you actually need to explicitly request the desired scope. See line 75: https://gist.github.com/aineko-m/15121de81feee5a66b56#file-getrefreshtoken-php
Celebrin Dragonheart
White Dragons
#5 - 2015-02-02 17:01:44 UTC
Thank you Aineko!

You just hit the nail squarely on the head! :)

I'm now up to by eyeballs in glorious market data....


Thanks again!
Celebrin