auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
const axios = require('axios')
// define a step export as an array
this.testExport = []
// push the response data into the array on each loop
for (let i=1; i < 5; i++) {
let response = await axios.get(`https://swapi.co/api/people/${i}`)
this.testExport.push(response.data)
}
auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
// refer to a previous step export using `steps.STEP_NAME.EXPORT_NAME. E.g.,
console.log(steps.example.testExport)