RapidAPI logo

Text-Processing

FREEMIUM
By japerk
Updated 4 months ago
Other
9.3/10
Popularity Score
594ms
Latency
72%
Success Rate
avahuang4 years ago
making multiple callsHow to make multiple calls to the API using ".send("text=)" If I split the article first and save it in an array? btw, the code only works for ".send("text=hi some text here.")" but not " .send("text","hey there")" in your documentation.
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