I have an end point. I need to call this end point 5 times on a single call. Response from every call needs to passed onto another API call.
How do I do it using request-promise package.
const rp = require('request-promise')
app.get('', (req, res) => {
let topFiveArr = [];
const businessOptions = {
url: businessUrl,
json: true
};
rp(businessOptions)
.then((businessBody) => { // I am not sure hot to call it 5 times
// call another API