RapidAPI logo

Natural Language Processing - Understanding - Personality Analysis - Tone - Intent

FREEMIUM
By Recognant
Updated 4 months ago
Communication
3.4/10
Popularity Score
13941ms
Latency
100%
Success Rate
Discussions
Hi Developer, feel free to ask your question:
suhlabs:2 years ago
0 Answers

Developer Access

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.post("https://nlp-nlu.p.rapidapi.com/superstring/")
.header("X-RapidAPI-Host", "nlp-nlu.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("q=This is text to analyze. It can be quite long. Up to 10k characters.")
.send("m=tokencount,composition")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication