This projects helps you to make HTTP requests to the Envato API.
Before you begin, you need to get your personal token in the Manage your apps.
After getting your personal token, you need to install this module in your Node.js project:
npm install node-envato
In order to use this module, you have to import it in your application first:
// import the library
const envato = require('node-envato');
// init with your token
const getResult = envato({
username: 'YOUR_USERNAME',
token: 'YOUR_TOKEN_CODE',
});
// get the data
getResult.totalItems(function (err, data) {
if (err) { return console.log(err); }
console.log(data);
});