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

FREEMIUM
By Recognant
Updated 5 months ago
Communication
6.6/10
Popularity Score
11584ms
Latency
81%
Success Rate
suhlabs2 years ago
Developer AccessDo you have developer pricing that allows us to use your API in our development environment? Regards, Young So
Hi Developer, feel free to post your answer:

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