auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
// Print "Hi there" in the absence of a name
const { name } = event.query || "there"
// See https://docs.pipedream.com/workflows/steps/triggers/#http-responses
$respond({
status: 200,
headers: {
"Content-Type": "text/html; charset=UTF-8"
},
body: `<html><h1>Hi, ${name}</html>`,
})