Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const rp = require('request-promise')
- let respuesta = []
- array.forEach((item) => {
- let uri = `url/${item.param}`
- rp({
- rejectUnauthorized: false,
- method: 'GET',
- uri: `${params.baseURI}${uri}`,
- json: true,
- headers: {...}
- }).then(res => {
- respuesta.push({
- ...
- })
- })
- })
- return resultado
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement