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: "POST",
url: `https://jsonplaceholder.typicode.com/posts`,
headers: {
"Content-Type": "application/json",
},
data: {
name: "Luke"
}
})
// 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