RapidAPI

The RapidAPI Developer Hub

Welcome to the RapidAPI developer hub. You'll find comprehensive guides and documentation to help you start working with RapidAPI as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Documentation
Ask A Question

Questions

How do I use NodeJS to call a batch of urls?

Posted by John Baroh 16 days ago

const RapidAPI = require('rapidapi-connect');
const rapid = new RapidAPI
const fs = require('fs');

var array = fs.readFileSync('Kairos.js', 'utf8').toString().split("\n");
for(i in array) {

console.log(array[i]);

rapid.call('KairosAPI', 'getEmotionalAnalysis', {
'appId': '',
'appKey': '',
'source': array[i],
'landmarks': '1'

}).on('success', (payload)=>{
console.log(payload);
});
}

This doesn't work for me!! Help! I suck at programming!!

Loading comments...