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")
// Make an HTTP GET request using axios
const resp = await axios({
method: "GET",
url: `https://jsonplaceholder.typicode.com/comments`,
params: {
postId: 1
}
})
// Retrieve just the data from the response
const { data } = resp
// export this data for use in a future step
// https://docs.pipedream.com/workflows/steps/#step-exports
this.data = data