npm.io
1.0.1 • Published 5 years ago

bloxlink-fetch

Licence
MIT
Version
1.0.1
Deps
1
Size
10 kB
Vulns
0
Weekly
0

Promise based library to fetch Bloxlink user data

Table of Contents

Installing

Using npm:

$ npm install bloxlink-fetch

Using yarn:

$ yarn add bloxlink-fetch

Example

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));