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
- Install NodeJS.
- Download or clone the project.
- Go to the
honeygain.js
folder and runnpm install
. - Require
client.js
.
- Run
npm install honeygain.js
. - Require the library.
The library can be used in both CommonJS and ES Modules
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();
See the license