Text Clustering

FREEMIUM
By MeaningCloud
Updated 3 months ago
4.9/10
Popularity Score
1967ms
Latency
100%
Success Rate
Discussions
Hi Developer, feel free to ask your question:

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://meaningcloud-text-clustering-v1.p.rapidapi.com/clustering-1.1")
.header("X-RapidAPI-Host", "meaningcloud-text-clustering-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Accept", "application/json")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("id=text01%0Atext02%0Atext03%0Atext04%0Atext05")
.send("lang=en")
.send("txt=He earns $200,000/yr and still has a mortgage on his house :(%0AZara clothes will be the death of my credit card%0AMy bank insisted I destroyed my credit card before I could get a mortgage%0AI'm not paying the mortgage or credit card bills%0ATell them you've never had a loan, you have no mortgage")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication