1.0.4 • Published 5 years ago
rapyd-ai v1.0.4
RAPYD-AI
Here you find the guidline how to use rapyd-ai npm package.
const rapydai = require('rapyd-ai')(accountId, username, password);
const text;
const provider;
// create token
const tokenResult = await rapydai.getToken();
const token = idToken.raw_body.idToken;
// call sentiment
const sentimentResult = await rapydai.sentiment(text, provider, token);