1.3.0 • Published 2 years ago

honeygain.js v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

HoneyGain.js

axios

GitHub stars npm

honeygain.js is a Node.js module that allows you to easily interact with the EarnApp API.

  • Promise-based
  • Performant
  • 100% coverage of the HoneyGain API

Installation

With GitHub:

  • Download or clone the project.
  • Go to the honeygain.js folder and run npm install.
  • Require client.js.

With npm:

  • Run npm install honeygain.js.
  • Require the library.

Documentation

Example usage

The library can be used in both CommonJS and ES Modules

Using the library

The library is async, be sure to use async functions or .then()

const { Client } = require("honeygain.js");
//OR
import { Client } from "honeygain.js";

const client = new Client();

client.login("eyJ0eXAi...xaL5x4");

client.stats().then((data) => {
    console.log(data);
});
//OR
const getStats = async () => {
    const data = await client.stats();
    console.log(data);
};

getStats();

Credits

HoneyGain

Copyright

See the license

1.2.0

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.3.0

2 years ago

1.0.0

2 years ago