RapidAPI logo

Sign Up

Log In

/ sudhakarnataraj
APIs Published
0
APIs Following
11
API Spotlight
0
Followed By
2
Users Following
0
This user has no published APIs
Discussions
0
All
Questions
Answers
arrowNewest
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.("https://")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication