ywwa / pnapi

API Wrapper for Paynow.gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paynow API (PNAPI)

Paynow.gg Developer API Wrapper.

⚠️ Package is in very early stages of development, it is not recommended for production use.

Installation

# using bun
bun add @ywwa/pnapi

# using npm
npm install @ywwa/pnapi

Simple usage example

import { config } from "dotenv";
import Paynow from "../src";

config();

const main = async () => {
  const client = new Paynow();
  client.config = {
    auth: { type: "apikey", key: process.env.API_KEY },
    store_id: process.env.STORE_ID,
  };

  const store = await client.Management.Stores.get();

  console.log(store);
};

main();

About

API Wrapper for Paynow.gg

License:MIT License


Languages

Language:TypeScript 99.9%Language:JavaScript 0.1%