1.2.3 • Published 2 years ago

pterodactyl-api.js v1.2.3

Weekly downloads
-
License
GNU LGPLv3
Repository
github
Last release
2 years ago

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

1.2.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.1

3 years ago

1.0.0

3 years ago