Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

DJCoolDev/pterodactyl-api.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pterodactyl-api.js

pterodactyl-api.js is a simple node.js module to simplify the communication with the pterodactyl REST API. Currently, it only supports all /api/application/users & /api/application/servers methods.

Installation

Use the package manager npm to install pterodactyl-api.js.

npm install pterodactyl-api.js

Usage

See more detailed examples in the examples directory.

const pterodactylApi = require('pterodactyl-api.js');
const api = new pterodactylApi('PANEL_URL_OR_IP', 'API_TOKEN');

async function runMain() {
    try {
        await api.deleteUser('1');
    } catch (error) {
        console.error(error);
    }
}
runMain();

About & Informations

All parameters that are sent to pterodactyl's API are named the same as you can see here at the different endpoints.

This module was based on this.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GNU LGPLv3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •