NodeJS SDK Library / Wrapper for the Webdock API
npm install webdock
Full API documentation is available at: api.webdock.io
const WebdockApi = require("webdock");
WebdockApi.OpenAPI.TOKEN = "Your_token_goes_here";
const main = async () => {
const ping = await WebdockApi.PingService.getPing();
console.log(ping); // { webdock: 'rocks' }
const servers = await WebdockApi.ServersService.getServers();
console.log(servers);
};
main();