1.2.5 • Published 5 years ago
sinoni v1.2.5
Sinoni for NodeJS
Installation
npm i sinoni
Usage
const sinoni = require('sinoni');
sinoni({
token: "8aee7ab77891731083d21b853d6ef12ca044beff",
text: "Your article",
lang: "en"
}).then(res => {
console.log(res.rewrite); // Your rewrite
// If after 5 minutes you do not get the result,
// the check is terminated.
console.log(res); //=> {"token": "XXX", "id": "YYY"}
}).catch(console.error);
EN: https://rewriter.tools/en/api.html
RU: https://sinoni.men/ru/api.html