/nodejs-sdk

NodeJS SDK Library / Wrapper for the Webdock API

Primary LanguageTypeScript

webdock

NPM

NodeJS SDK Library / Wrapper for the Webdock API

Installation

npm install webdock

Documentation

Full API documentation is available at: api.webdock.io

Usage example

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();