/eveclient

Client for Eve API

Primary LanguageJavaScriptMIT LicenseMIT

Eve Client

Build Status Coverage Status Code Climate

Client for the Eve API with cache provided by Cacheman

Example

var Client = require('./lib/client'),
    client = new Client({
        key: '123456',
        code: 'yellowsubmarineyellowsubmarine'
    });

client.fetch('account', 'AccountStatus', {}, function(err, result) {
    console.log(err, result);
});

API

Client

new Client(options)

var options = {
  key: '1234', // Eve Key ID
  code: 'yellowsubmarine', // Eve Verification Code
  cache: null // (Optional Cacheman configuration, defaults to memory cache)
};

var client = new Client(options);

See Cacheman for cache details

Client#fetch(resource, endpoint, params, callback)

client.fetch('server', 'ServerStatus', {}, function(err, result) {
  console.log(err, result);
});