mineservers.io
v1.0.0
Published
A simple and easy wrapper for interacting with api.mineservers.io.
Downloads
1
Maintainers
Readme
mineservers.io
A simple and easy to use wrapper for interacting with api.mineservers.io.
Example
const MineServers = require('mineservers.io');
const client = new MineServers.Client();
// Fetch user information.
client.getUser('USER ID').then((res) => {
console.log(res);
}).catch((e) => {
console.error(e);
});
// Fetch server information.
client.getServer('SERVER ID').then((res) => {
console.log(res);
}).catch((e) => {
console.error(e);
});
// Fetch users servers.
client.getUserServers('USER ID').then((res) => {
console.log(res);
}).catch((e) => {
console.error(e);
});
Todo
- Implement system to handle ratelimts?
- Cache system?
License
This package follows the Apache 2.0 License.