1.0.2 • Published 4 months ago

4vpsjs v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

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
}
1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago