ESA Semantic Relatedness

FREEMIUM
By amtera
Updated 5 months ago
Other
3.1/10
Popularity Score
59327ms
Latency
-
Success Rate
anly24 years ago
Error with message "Service failure, sorry."Testing the endpoint returns an error response with the message "Service failure, sorry."
amtera4 years ago
You can use the mashape web interface again. The problem is solved. Thanks for reporting.
anly24 years ago
Okay, thank you for the prompt responses.
leonardossz4 years ago
Seems there's a problem with mashape web interface. We're contacting their support. We tested programmatically and it's working. I suggest you try outside mashape console. If you use Linux based OS you can use cURL: curl -X POST --include 'https://amtera.p.mashape.com/relatedness/en' \ -H 'X-Mashape-Key: PUT-YOUR-KEY-HERE' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ --data-binary '{"t1":"car","t2":"engine"}'
amtera4 years ago
Ok. We are investigating I will get back to you soon.
anly24 years ago
I did not even change the JSON payload. It was the same as the sample: { "t1": "car", "t2": "engine" } I am trying it through here, if that helps: https://market.mashape.com/amtera/esa-semantic-relatedness/#
amtera4 years ago
Hi, Thanks for getting in touch. Seems you're sending an invalid request. Check your JSON payload at http://jsonlint.com and see if validates. Get back to us if you're still in trouble. Regards, Amtera Semantic Technologies
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://amtera.p.rapidapi.com/relatedness/en")
.header("X-RapidAPI-Host", "amtera.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"t1":"car","t2":"engine"})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication