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 with getting started with CREST?

First post
Author
SpaceSaft
Almost Dangerous
Wolves Amongst Strangers
#1 - 2015-10-07 14:40:20 UTC
Hello everyone,

I know some python and I've dabbled a bit with the XML API and understand how that works but the CREST seems to work a bit differently. Unfortunately the information on how to do anything with it is not really obvious to me and the written examples on github are not commented.

I understand the main difference between the two is that CREST can be read & write while the old API is only readable.

Then there is something with single sign on that manages the authentification: the verification is done by CCP so the 3rd party dev never gets login details, only the ok from CCP that the login is valid.

But then there is sessions and developers.eve-online.com wants a redirect https for the thing? So no stand alone applications?

In short: How do I CREST?

Any explanation or links to resources that explain how CREST works are greatly appreciated!

Thanks.
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#2 - 2015-10-07 16:40:06 UTC
https://github.com/fuzzysteve/CREST-Market-Downloader

Tada, python based market downloader, using authenticated CREST.

Short version:
For a standalone application, you need to either:
Get a refresh token from a web application
or
build in a web server, to handle the final step of the auth
or
register a handler for a protocol which sends the details to your application myapp://localhost/stuff or similar

For the app above, I went down the webserver route.

CREST uses fairly standard OAUTH2 for handling the authentication. Once you're authed, you can hit the decode endpoint, to find out who you're authed as.

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter

Ydnari
Estrale Frontiers
#3 - 2015-10-07 20:56:54 UTC
SpaceSaft wrote:
I understand the main difference between the two is that CREST can be read & write while the old API is only readable.

There are no accessible "write" parts of CREST.

--

SpaceSaft
Almost Dangerous
Wolves Amongst Strangers
#4 - 2015-10-07 21:01:34 UTC  |  Edited by: SpaceSaft
Steve,

where do I get the "cacert.pem" that is needed? Doesn't really run out of the box for me, maybe that's because I have python 2.7.9.

(Also stop using python 2.7 P)
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#5 - 2015-10-08 11:27:33 UTC
well, there's http://curl.haxx.se/ca/cacert.pem



As for why I'm using 2.7, it's mostly because when I have things on my server, that's running 2.7, and updating python's a pain, as centos depends on python to be 2.7 (yes, you can have another version, and run it as python3, but that's still a touch of pain.)

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter