loader.io.api
Version:
loader.io api wrapper for nodejs. If you interested in this npm package, take a look at the npm package [perst](https://dasred.github.io/perst).
29 lines (22 loc) • 800 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var Applications = require('./Application/Applications.js');
var Tests = require('./Tests/Tests.js');
var Servers = require('./Servers.js');
var Client = require('./Client.js');
class LoaderIO {
/**
*
* @param {string} token
* @param {string} server
* @param {string} version
*/
constructor(token, server = 'https://api.loader.io', version = 'v2') {
const client = new Client['default'](token, server, version);
this.applications = new Applications['default'](client);
this.tests = new Tests['default'](client);
this.servers = new Servers['default'](client);
}
}
module.exports = exports = LoaderIO;
exports['default'] = LoaderIO;