1.0.0 • Published 9 years ago
virtualmin-api v1.0.0
Virtualmin API
Its a simples wrapper
##How its works?
/**
* Create a new instance
*/
var config = {
host: 'foo.com', //required
path: '/virtual-server/remote.cgi', //value default not required
port: 10000, //value default not required
user: 'senha', //required
password: 'password' //required
};
var connection = new Virutalmin(config);
/**
* Execute one action
*/
connection.command(program)({
//pass params here
domain,
proxy
})
.then((data) => {
})
.catch((err) => {
});
The commands and params is the same of "Virutalmin CLI, check the original doc here."
1.0.0
9 years ago