Wiki listing all the functions and managers [ WIP ]
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)