1.0.0 • Published 4 years ago

mineservers.io v1.0.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
4 years ago

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.