Sentiment Analysis

FREEMIUM
By MeaningCloud
Updated 3 months ago
Data
4.5/10
Popularity Score
382ms
Latency
100%
Success Rate
Not able to use textalytics-sentiment-analysisHi, I am not able to use the API "https://textalytics-textalytics-sentiment-analysis-11.p.mashape.com/sentiment-1.1". It's giving "402 Payment is required" exception. I think it's a free service and no payment is required. Please suggest me what to do. Thanks
MeaningCloud4 years ago
It no longer applies. Visit the new [Documentation page](https://www.mashape.com/meaningcloud/sentiment-analysis).
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.get("https://sentiment-analysis.p.rapidapi.com/sentiment-2.1.php?of=json&txtf=plain&uw=n&dm=s&sdg=l&rt=n&egp=n&lang=en&txt=In+the+country+of+Sokovia%2C+the+Avengers+%E2%80%93+Tony+Stark%2C+Steve+Rogers%2C+Thor%2C+Bruce+Banner%2C+Natasha+Romanoff%2C+and+Clint+Barton+%E2%80%93+raid+a+Hydra+outpost+led+by+Wolfgang+von+Strucker%2C+who+has+been+experimenting+on+humans+using+the+scepter+previously+wielded+by+Loki.+They+encounter+two+of+Strucker's+experiments+%E2%80%93+twins+Pietro%2C+who+has+superhuman+speed%2C+and+Wanda+Maximoff%2C+who+can+manipulate+minds+and+project+energy+%E2%80%93+and+apprehend+Strucker%2C+while+Stark+retrieves+Loki's+scepter.&model=general")
.header("X-RapidAPI-Host", "sentiment-analysis.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Accept", "application/json")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication