auths objectreturn or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps) => {}return [1, 2, 3]auths objectreturn or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps, params) => {}const axios = require("axios");
// We'll store each response and return them in this array
const responses = []
for (const num of steps.numbers.$return_value) {
const resp = await axios({
method: "POST",
url: params.url,
data: {
num // Will send the current value of num in the loop
}
});
responses.push(resp.data)
}
return responses