1.1.1 • Published 4 years ago

autobuy.js v1.1.1

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

AutoBuy.js

A simple node package that sends request to the autobuy.io API.

Installation

npm install autobuy.js

Usage

Using .then()

const { AutoBuyClient } = require('autobuy.js');
const autobuy = new AutoBuyClient('APIKEY');

autobuy.someMethod('parameters')
.then(result => console.log(result));

Using async/await

const { AutoBuyClient } = require('autobuy.js');
const autobuy = new AutoBuyClient('APIKEY');

(async() => {
    const result = await autobuy.someMethod('parameters')
    console.log(result);
})();