justanotherpanel-api-wrapper

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i justanotherpanel-api-wrapper

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

3.55 kB

Total Files

3

Last publish

Collaborators

  • fknmega