JSPM

@morgann1/bloxlink

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q47582F
  • License MIT

Unofficial NPM package to interact with the Bloxlink API.

Package Exports

  • @morgann1/bloxlink
  • @morgann1/bloxlink/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@morgann1/bloxlink) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@morgann1/bloxlink - an unofficial NPM package to interact with the Bloxlink v3 API.

Installation

With Node Package Manager:

$ npm install @morgann1/bloxlink

With Yarn

$ yarn add @morgann1/bloxlink

Usage (Setting up)

const { Configuration, BloxlinkAPI } = require("@morgann1/bloxlink");

const configuration = new Configuration({
    apiKey: "your api key goes here"
});

const bloxlink = new BloxlinkAPI(configuration);

Search API (Discord -> Roblox)

(async () => {
    const result = await bloxlink.search("DISCORD ID", "GUILD ID (OPTIONAL)");
    console.log(result);
})();

The example above should log a response similar to the following:

{
  success: true,
  user: { robloxId: '23587198', primaryAccount: '23587198' }
}

A bad response should not include any information in the user object:

{
  success: true,
  user: {}
}

Reverse Searching (Roblox -> Discord)

Mentioned by John (Community Manager for Bloxlink):

Reminder, reverse API lookups are not for the public. It is limited to only certain large groups.
If you send an email requesting access, you will most likely be denied. Even for large groups, it’s very limited.