Skip to content

Latest commit

 

History

History
232 lines (202 loc) · 17.1 KB

README.md

File metadata and controls

232 lines (202 loc) · 17.1 KB

glesys-api

npm Build Status Coverage Status

A Node.js wrapper for the GleSYS API.

Installation

Note: Node 10.13.0 (LTS) or later is required.

npm install glesys-api

Usage

const GleSYSAPI = require('glesys-api');

const glesys = new GleSYSAPI({
    apiKey: 'key',
    apiUser: 'user',
});

(async () => {
    try {
        const { body } = await glesys.api.serviceInfo();

        console.log(body)
    } catch (e) {
        console.error(e);
    }

    glesys.email.createAccount({
        emailaccount: '[email protected]',
        password: 'password',
    });
})();

Available methods

account

api

archive

country

customer

domain

email

fileStorage

invoice

ip

loadBalancer

network

networkAdapter

paymentCard

project

server

sshKey

transaction

user

vpn

For more information about the GleSYS API, available arguments etc., please see the GleSYS API documentation.