0.0.1 • Published 5 months ago
jap-wrapper v0.0.1
Jap Wrapper
A JavaScript wrapper for Just Another Panel (JAP) API.
This wrapper leaves API responses unaltered and doesn't manage errors, requiring manual handling.
Installation
npm install jap-wrapper
Examples
import Jap from "jap-wrapper";
const jap = new Jap("your-api-key");
(async () => {
try {
const res = await jap.currentBalance();
console.log(res);
} catch (error) {
// ....
}
})();
API
Jap.currentBalance()
Get the current balance of your JAP accountJap.allServices()
Get all JAP servicesJap.newOrder()
Place new order on JAPJap.orderStatus()
Check order status for one or multiple order IDsJap.createRefill()
Create a refill for one or multiple order IDs, ensure the service for the provided order has refill availableJap.refillStatus()
Check refill status for one or multiple order IDs
You can check JAP api documentaion here
License
0.0.1
5 months ago