autobuy.js
v1.1.1
Published
A NodeJS Wrapper for the AutoBuy.io API
Downloads
15
Maintainers
Readme
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);
})();