Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

diogotcorreia/spigot-buyer-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spigot-buyer-list

npm npm bundle size GitHub issues GitHub pull requests NPM GitHub last commit

A NodeJS package that allows you to fetch the buyers list on Spigot for a premium plugin

WARNING: DEPRECATED

Since cloudscraper has been deprecated, this package no longer works correctly. Therefore, this project has been deprecated as well.

Installation

This package can be installed from NPM using npm or yarn.

npm install spigot-buyer-list
yarn add spigot-buyer-list

Code Examples

Using this package is pretty straight forward. Here is some sample code:

import SpigotSite from 'spigot-buyer-list';

const getBuyers = async () => {
  try {
    const spigotSite = new SpigotSite('username', 'password', 'tfaSecret');
    await spigotSite.loginToSpigot();
    // getBuyersList(resourceId)
    const buyers = await spigotSite.getBuyersList(30331); // [{id: 123456, username: "user"}, ...]
  } catch (e) {
    console.error('Failed to fetch buyer list', e);
  }
};

Contributing

Feel free to submit a PR or open an issue if you want something improved with this package. Remember to run yarn format (or npm run format) before commiting (in case of code changes).

About

A NodeJS package that allows you to check the buyers list on Spigot for a premium plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published