Sign Up

Log In

Text-Processing

FREEMIUM
By japerk
Updated 2 months ago
Other
9.5/10
Popularity Score
293ms
Latency
34%
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", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("language=undefined")
.send("text=<required>")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard