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.
 

Thera.js - A Promise driven EVE API client for node.js

First post
Author
Yuki Yukoe
Perkone
Caldari State
#1 - 2016-06-22 12:26:56 UTC
This is just a little something i've been working on in some of my free time to learn some ES6 features & a few other technologies. I tried looking for similar promise driven api clients but the only one I could find was written in CoffeeScript (of which i'm not a huge fan) so decided to write my own.


I thought i'd share this here incase it was actually useful to anyone other than myself, or incase anyone fancied contributing/collaborating! Any feedback is most welcome!


Thera.js is a promise driven EVE online API client written in ES6 for node.js. It is currently only compatible with the XML api, however I will be working on a CREST client component for Thera soon.


Basic Example usage:

import thera from 'thera';

var xmlClient = new thera.XmlClient({
  keyID: '123456',
  vCode: 'verificationcode123123123123123'
});

xmlClient.get('account/Characters').then(accountCharacters => {
  // do something with the account/Characters resource
});


Thera.js can be installed easily with:

npm install thera


Full documentation and advanced usage examples are available here: https://www.npmjs.com/package/thera
CCP FoxFour
C C P
C C P Alliance
#2 - 2016-06-23 08:35:58 UTC
awesome stuff! Thanks for sharing. :)

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.