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)
Your services:
import AezaAPI from 'aeza-net-sdk';
const api = new AezaAPI(process.env.TOKEN);
const services = await api.services(YOU_SERVER_ID);
console.log(services)
Limits Info:
import AezaAPI from 'aeza-net-sdk';
const api = new AezaAPI(process.env.TOKEN);
const limits = await api.getLimits();
console.log(limits)
Os Info:
import AezaAPI from 'aeza-net-sdk';
const api = new AezaAPI(process.env.TOKEN);
const list = await api.getOs();
console.log(list)
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)
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)
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)
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)
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)
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!