auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
/*
1. Copy this workflow to run it for free
2. Connect your Discord account
3. Deploy and send a test event
Check your Discord channel for a message!
Next, customize this workflow using any NodeJS and send live
webhook or HTTP traffic to the workflow endpoint URL generated
by Pipedream to run it!
*/
auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
// Write any NodeJS here to process the incoming event.
// You must return a string -- that value will be sent
// to Discord in the next step.
return `The A-Level Physics server is, because of Wuhan Flu, the means of education to the A-Level students during the outbreak. Until the Coronavirus has been contained, we will continue using the A-Level Physics server.`
async
(params, auths) => {
}
const axios = require("axios")
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
}
})
auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
/*
Integrate with 100+ apps and 1000+ APIs for free:
- Run code on each event using NodeJS and NPM
- Auth apps and APIs with a click and use keys
and oauth tokens in code (e.g., to send data to
Google Sheets, Airtable or Slack)
- Trigger your code via a unique pipedream.net
URL or email addresses, custom schedules or by
integrating the Pipedream SDK into your app
- No infrastructure to manage -- everything
runs on Pipedream's servers!
*/