auths
objectHow many seconds in the future would you like to schedule the task?
Enter the URL as it appears in the Endpoint field of your source
return
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, params) => {
}
// N seconds from now
this.ts = (new Date(+new Date() + (params.numSeconds * 1000))).toISOString()
return await require("@pipedreamhq/platform").axios(this, {
url: `${params.taskSchedulerURL}/schedule`,
headers: {
"Content-Type": "application/json",
},
data: {
timestamp: this.ts,
message: {
name: "Luke",
title: "Jedi",
},
secret: params.secret,
}
})