auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
const { createIcsString } = require('notion-calendar-integration')
return createIcsString(process.env.NOTION_TOKEN, process.env.CALENDAR_DB, {
date: process.env.DATE_PROPERTY_NAME || 'Date',
info: process.env.INFO_PROPERTY_NAME || 'Info'
});
auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
await $respond({
immediate: true,
status: 200,
headers: { "my-custom-header": "value" },
body: steps.nodejs.$return_value
});