RapidAPI logo

Text-Processing

FREEMIUM
By japerk
Updated 4 months ago
Other
9.3/10
Popularity Score
594ms
Latency
72%
Success Rate
eyalbn3 years ago
Form Validation Errors\ntext: This field is required.\n" ERROR CODE : 400I used the same code sample in your documentation ans still got error on text field. here is the code. HttpResponse<string> response = Unirest.post("https://japerk-text-processing.p.mashape.com/sentiment/") .header("X-Mashape-Key", "PASS_CODE_FROM_SITE") .header("Content-Type", "application/x-www-form-urlencoded") .header("Accept", "application/json") .field("text", "great movie") .field("language", "english") .asJson<string>(); resulting with error.... please help me fix this asap
japerk3 years ago
What language are you using? I don't see anything in the docs that exactly matches your code.
Hi Developer, feel free to post your answer:
Log inSign up

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://japerk-text-processing.p.rapidapi.com/phrases/")
.header("X-RapidAPI-Host", "japerk-text-processing.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("language=spanish")
.send("text=California is nice")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication