• Published 7 years ago

eveclient v

Weekly downloads
-
License
-
Repository
-
Last release
7 years ago

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);
});
1.0.0

9 years ago

0.1.0

9 years ago