Skip to content

fknMega/justanotherpanel-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

JustAnotherPanel API Wrapper

A Node.js wrapper for the JustAnotherPanel API.

Made by fknMega

Installation

npm install justanotherpanel-api-wrapper

Usage

First, import the library:

const Api = require('justanotherpanel-api-wrapper');

Initialize the API client with your API key:

const client = new Api();
client.api_key = 'YOUR_API_KEY';

Methods

Here's a list of available methods and how to use them:

Order

Place an order:

const orderData = {
    // ...your order details here
};
client.order(orderData).then(response => console.log(response));

Status

Check the status of an order:

const orderId = 'YOUR_ORDER_ID';
client.status(orderId).then(response => console.log(response));

Multi Status

Check the status of multiple orders:

const orderIds = ['ORDER_ID_1', 'ORDER_ID_2'];
client.multiStatus(orderIds).then(response => console.log(response));

Services

Get a list of available services:

client.services().then(response => console.log(response));

Balance

Check your balance:

client.balance().then(response => console.log(response));

... and so on for the other methods.

Dependencies

  • node-fetch

License

ISC

About

A Node.js wrapper for the JustAnotherPanel API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published