honeygain.js
v1.3.0
Published
A JavaScript library for interacting with the HoneyGain API
Downloads
301
Readme
HoneyGain.js
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
- Install NodeJS.
With GitHub:
- Download or clone the project.
- Go to the
honeygain.js
folder and runnpm 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
Copyright
See the license