4vpsjs
v1.0.2
Published
API wrapper for 4vps.su
Downloads
22
Maintainers
Readme
4vpsjs
An API wrapper for 4vps.su
Documentation
Visit https://4vps.su/page/api for information about every API route.
Example
const Hoster = require("4vpsjs");
const host = new Hoster.VPS4(process.env.apikey);
host.myservers().then((servers) => {
console.log(servers);
});
Example API response
Success
{
"isError": false,
"error": null,
"url": "https://4vps.su/api/myservers",
"data": { "serverlist": [] }
}
Error
{
"isError": true,
"error": "Authentication error",
"url": "https://4vps.su/api/myservers",
"data": null
}