Promise based library to fetch Bloxlink user data
Using npm:
$ npm install bloxlink-fetch
Using yarn:
$ yarn add bloxlink-fetch
const bloxlinkFetch = require("bloxlink-fetch");
// or while using CommonJS:
// import bloxlinkFetch from "bloxlink-fetch";
bloxlinkFetch({
userId: 1,
guildId: 0, // optional
})
.then((data) => {
console.log(data); // => { account: number; status: "ok" }
})
.catch((error) => console.error(error));