eveapi

Eve Online API caller

npm install eveapi
1 downloads in the last week
13 downloads in the last month

Eve Online API - XML2Json

Objective

Provide a simple way to access EVE Online API and change the results from XML to JSON.

Install

npm install eveapi  
npm run-script eveapi configure  //Edit server settings  
npm run-script eveapi start  //To start proxyserver

Requires

eveapi
xml2js - "npm install xml2js" - https://github.com/Leonidas-from-XIV/node-xml2js

evemanager
nano - "npm install nano"
couchdb - optional but recommended

Usage - proxyserver

List of API calls
http://wiki.eve-id.net/APIv2_Page_Index

vCode=zkqEkqVxuL0gBB06IFbZqm6BLkyAozOel21X7CwE1LqXCEHEIBqLGjs63DT7TL9R
keyID=2436788

http://domain:[port]/[APIPATH]?[options]
http://localhost:8080/account/apikeyinfo?vCode=x&keyID=x

(options)
Enable HTTPS change setting in settings.json

"sslenabled": true,  
"sslkey": "/key/eveapi",//just enter root name: example mykey-key.pem = /key/mykey

JSONP - Cross Domain Access
http://localhost:8080/j/[APIPATH]?[options]

Returns JSON string by calling eveapiCallback(JSON.object);
Please see JSONP helper in /client/eveapi-caller.js

Usage - evemanager

Example:

var api = evemanager.evemanager(character, callback);
//characeters will store charID for furture calls
api(evemanager.apikeys.ACCOUNT.characters);

//You only need to pass charID if characters call was never made
api(evemanager.apikeys.CHARACTER.assetlist, {charID: character.charID});

Usage - eveapi

Usage:
eveapi = require('./lib/eveapi');
eveapi.eveApicall(CALLBACK, urlPath, [keyID: , vCode: ])

Example:

 eveapi = require('./lib/eveapi');

 var callback = function(result){
     console.log(result);
 };

 eveapi.eveApicall(callback, "/server/ServerStatus.xml.aspx");

{"eveapi":{"$":{"version":"2"},"currentTime":["2013-08-01 10:09:42"],
"result":[{"serverOpen":["True"],"onlinePlayers":["24185"]}...

Developing

Further development to include all API calls.

Created with Nodeclipse v0.4 (Eclipse Marketplace, site)

npm loves you