auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
const { link, title } = event
this.message = `New tweet from ${steps.trigger.event.user.screen_name}: ${steps.trigger.event.full_text}
https://twitter.com/${steps.trigger.event.user.screen_name}/status/${steps.trigger.event.id_str}`
async
(params, auths) => {
}
const url = auths.discord_webhook.oauth_uid
let content = params.message
return await require("@pipedreamhq/platform").axios(this, {
method: "POST",
url,
headers: {
"Content-Type": "application/json"
},
data: {
content
}
})