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


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

Posted by John Baroh 7 months 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]);'KairosAPI', 'getEmotionalAnalysis', {
'appId': '',
'appKey': '',
'source': array[i],
'landmarks': '1'

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

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

Loading comments...