You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

aeza-net-sdk

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aeza-net-sdk

A library that allows you to work with the AEZA.NET hosting API

1.0.6
Source
npmnpm
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

AEZA-NET-SDK - This is a Node.js module that makes it easy to interact with the AEZA API. 🚀

📦 Installation:

Node.js 12.20.0 or newer is required

  • Using npm (recommended)
    npm i aeza-net-sdk
    

Example usage:

import AezaAPI from 'aeza-net-sdk';
const api = new AezaAPI(process.env.TOKEN);

Available methods:

Profile Info:

import AezaAPI from 'aeza-net-sdk';

const api = new AezaAPI(process.env.TOKEN);
const profile = await api.getProfile();

console.log(profile) // Displays information about your profile

Your services:

import AezaAPI from 'aeza-net-sdk';

const api = new AezaAPI(process.env.TOKEN);
const services = await api.services(YOU_SERVER_ID); // * YOU_SERVER_ID it`s not necessary to specify, to receive all servers

console.log(services) // Displays information about your services

Limits Info:

import AezaAPI from 'aeza-net-sdk';

const api = new AezaAPI(process.env.TOKEN);
const limits = await api.getLimits();

console.log(limits) // Displays limits

Os Info:

import AezaAPI from 'aeza-net-sdk';

const api = new AezaAPI(process.env.TOKEN);
const list = await api.getOs();

console.log(list) // Displays all os

Charts Info:

import AezaAPI from 'aeza-net-sdk';

const api = new AezaAPI(process.env.TOKEN);
const charts = await api.charts(YOU_SERVER_ID);

console.log(charts) // Displays server statistics information

Create Server:

import AezaAPI from 'aeza-net-sdk';

const api = new AezaAPI(process.env.TOKEN);
const order = await api.order({
  productId: ID_SERVICES,
  term: 'hour/month/year',
  autoProlong: false/true,
  name: 'YOU-NAME-SERVER',
});

console.log(order) // Displays server information

Delete Server:

import AezaAPI from 'aeza-net-sdk';

const api = new AezaAPI(process.env.TOKEN);
const service = await api.delete(YOU_SERVER_ID);

console.log(service) // Displays information about server deletion

Restart Server:

import AezaAPI from 'aeza-net-sdk';

const api = new AezaAPI(process.env.TOKEN);
const service = await api.restart(YOU_SERVER_ID);

console.log(service) // Displays information about server restart

Task Info:

import AezaAPI from 'aeza-net-sdk';

const api = new AezaAPI(process.env.TOKEN);
const list = await api.getTask(YOU_SERVER_ID);

console.log(list) // Displays all task your server

Change password to server:

import AezaAPI from 'aeza-net-sdk';

const api = new AezaAPI(process.env.TOKEN);
const service = await api.changePassword(YOU_SERVER_ID, "NEW_PASSWORD");

console.log(service)

To improve the library, you can unsubscribe to AEZA.NET hosting support!

Keywords

api

FAQs

Package last updated on 23 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts