Semantic-Text-Analysis

FREEMIUM
By dandelion
Updated 5 months ago
Media
-/10
Popularity Score
-
Latency
-
Success Rate
Discussions
Hi Developer, feel free to ask your question:
DeniseM:10 months ago
0 Answers

SLA

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://dandelion-datatxt.p.rapidapi.com/nex/v1/")
.header("X-RapidAPI-Host", "dandelion-datatxt.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("text=The doctor says an apple is better than an orange")
.send("min_confidence=0.6")
.send("include=types, categories, abstract, lod, image, alternate_labels")
.send("min_length=2")
.send("lang=en")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication