Code Monkey home page Code Monkey logo

crestmarket's Introduction

crestmarket

GoDoc Build Status Gratipay

A reference library for working with the authenticated EVE-Online CREST endpoint, including market data. Licensed under the Apache License, 2.0.

Features

  • OAuth2 negotiation and integration.
  • A sample scanner application which demonstrates how to call endpoints and receive data.
  • Converters to output the Unified Uploader format JSON for all market orders fetched.
  • A "proxy server" to allow interactive exploration of the CREST structure without needing to navigate OAuth2 in the browser or in your own application.

Getting started

Make sure you have Go 1.4 installed. Make sure you have defined a $GOPATH.

These commands can be run anywhere, though explicit paths are referenced to the root of GOPATH:


go get github.com/theatrus/crestmarket
go install github.com/theatrus/crestmarket/scanner
cp src/github.com/theatrus/crestmarket/scanner/settings.json.example
settings.json

At this point, edit settings.json to include your CCP provided client and secret. You will need a callback to receive your OAuth reply code.

bin/scanner

Running the scanner example will prompt you to open a URL, and to paste in the reply code and hit enter. By default, this will also cache your OAuth tokens in token.json

CREST Proxy server

Included is a simple HTTP server which proxies URLs to CREST and rewrites all URLs to point to local resources.

go install github.com/theatrus/crestmarket/crestproxy
cp src/github.com/theatrus/crestmarket/scanner/settings.json.example
settings.json
$GOPATH/bin/crestscanner

Complete any authorization needed on the console, and then open a web browser to http://localhost:12345 If you have a browser plugin which linkifies and displays JSON (such as http://jsonview.com/ or other more modern replacements) you can click to navigate CREST.

Gotchas

  • The /universe/ endpoints are not yet available, so map data and ID fetching uses munging in a few places.

crestmarket's People

Contributors

theatrus avatar

Watchers

Gregory Hanis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.