Sentiment Analysis

FREEMIUM
By MeaningCloud
Updated 3 months ago
Data
4.7/10
Popularity Score
426ms
Latency
100%
Success Rate
rajswami95953 years ago
not working on my websiteit is not working on my website i have put correct api key still it is replying {"code":401,"raw_body":false,"body":null,"headers":{"{\"message\"":"\"Missing Mashape application key. Go to http:\\\/\\\/docs.mashape.com\\\/api-keys to learn how to get your API application key.\"}"}} help me
MeaningCloud3 years ago
The best option is to carry out the request against our APIs directly instead of through Mashape. You can find all the documentation you need here: https://www.meaningcloud.com/developer/sentiment-analysis/doc
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