GetSentiment

FREEMIUM
By getsentiment
Updated 5 months ago
Tools
2.4/10
Popularity Score
192ms
Latency
-
Success Rate
Discussions
Hi Developer, feel free to ask your question:
AlexandraH:21 hours ago
0 Answers

Not working. 503 Service Unavailable.

bdelamatre:2 years ago
2 Answers

text missing

alecsaddler:3 years ago
2 Answers

Internal Server Error

lynmash:4 years ago
1 Answer

Custom Plan

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://getsentiment.p.rapidapi.com/")
.header("X-RapidAPI-Host", "getsentiment.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("categories=1")
.send("domain=hospitality")
.send("sentiment=1")
.send("annotate=1")
.send("terms=1")
.send("intentions=0")
.send("text=The food was great, but the service was slow.")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication