1.1.0 • Published 7 years ago

eve-swagger-simple v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

eve-swagger-simple

Simple promise-based node.js module for utilizing Eve Swagger Interface. Feel free to check out eve-sso-simple for simplified SSO sign-on and token retrieval. Please email me for bugs/suggestions!

##Usage Examples

Print the search result for 'Jita.'

var esis = require('eve-swagger-simple');

esis.request('/search/', {
    categories: 'station,solarsystem',
    datasource: 'tranquility',
    search: 'Jita'
}).then((result) => { console.log(result) }, (error) => { console.log(error) });

Print the wallet balance.

var esis = require('eve-swagger-simple');

esis.request('/characters/95943054/wallet/', { 
    character_id: 95943054,
    datasource: 'singularity', 
    token: ... // Character's access token here.
    .
    .
    // Add other parameters if you need.
}).then((result) => { console.log(result) }, (error) => { console.log(error) });

Set in-game autopilot.

var esis = require('eve-swagger-simple');

// Sets autopilot destination.
esis.request('/ui/autopilot/waypoint/', {
    datasource: 'tranquility',
    add_to_beginning: true,
    clear_other_waypoints: true,
    destination_id: 30000142,
    token: (character's access token here)
    .
    .
    // Add other parameters if you need.
}).then((result) => { console.log(result) }, (error) => { console.log(error) });

##Updates ###1.0.2 POST routes work now. ###1.0.3 GET routes now working properly as before. ###~1.0.9 Bug fixes & README edits. ###1.1.0 Better promise rejection. No longer automatically outputs error to console; user should implement custom rejection handling.

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago