UNPKG

pterodactyl-manager

Version:

A powerful and easy-to-use API wrapper for Pterodactyl's API, providing a seamless integration of server management and user administration functionalities.

11 lines 287 B
module.exports = async function getUsers(url, headers) { try { const response = await fetch(`${url}/api/application/users`, { method: "GET", headers }); return JSON.parse(await response.text()); } catch (err) { console.log(err); } };