Skip to content
Mateusz edited this page Feb 7, 2022 · 4 revisions

PteroWrap v1.1.1

npm version

Wiki listing all the functions and managers [ WIP ]

Basic Usage

const { ApplicationInstance } = require("pterowrap")

const url = "https://pterodactyl.app/api/"
const key = "meowmeowmeow"

const client = new ApplicationInstance(url, key)
const server = await client.servers.get(5)
console.log(server.name)
const { ClientInstance } = require("pterowrap")

const url = "https://pterodactyl.app/api/"
const key = "meowmeowmeow"

const client = new ClientInstance(url, key)
const account = await client.account.retrieveDetails()
console.log(account.username)
Clone this wiki locally