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
}