tolgaergin / node-envato

Envato, ThemeForest API nodejs wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Envato Node.js Wrapper

This projects helps you to make HTTP requests to the Envato API.

Installation

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

Initialization

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);
});

About

Envato, ThemeForest API nodejs wrapper


Languages

Language:JavaScript 100.0%