This is a simple and complete port of the vultr api in node.js.
npm install vultr.js
Authentication with an api key
vultr.setToken('your token here');
Get all applications available
vultr.getApplications(function (err, data) {
if (err) throw err;
console.log(data);
});
Get account info
vultr.getAccountInfo(function (err, data) {
if (err) throw err;
console.log(data);
});
Get plans
vultr.getPlans(function(err, data) {
if (err) throw err;
console.log(data);
});
Create new server named helloworld at Paris with 768 MB of ram and with Debian 8 jessie
vultr.createServer({DCID: 24, VPSPLANID: 29, OSID: 194, label: 'helloworld'}, function (err, data) {
if (err) throw err;
console.log(data);
});