Text-Processing

FREEMIUM
By japerk
Updated 5 months ago
Other
9.3/10
Popularity Score
395ms
Latency
85%
Success Rate
fgredruello5 years ago
Invalid Mashape key - PHP methodHi! Can you help me ?? PHP example method: $response = Unirest::post( "https://japerk-text-processing.p.mashape.com/sentiment/", array( "X-Mashape-Authorization" => "MY_MASHAPE_KEY" ), array( "text" => "", "language" => "", )); return: HttpResponse Object ( [code:HttpResponse:private] => 403 [raw_body:HttpResponse:private] => {"message":"Invalid Mashape key. If you are a Mashape user, get your key from your dashboard at https://www.mashape.com/login - To create a free Mashape account instead, go to https://www.mashape.com/signup"} [body:HttpResponse:private] => stdClass Object ( [message] => Invalid Mashape key. If you are a Mashape user, get your key from your dashboard at https://www.mashape.com/login - To create a free Mashape account instead, go to https://www.mashape.com/signup ) [headers:HttpResponse:private] => Array ( [Date] => Wed, 24 Apr 2013 13:10:57 GMT ) ) Thanks!
fgredruello5 years ago
Sorry for any incovenience, error in my php library.. :( API Works !!! Thanks!
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.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