auths
objectEnter the URL of your RSS feed here
The secret you've set on your RSS workflow to protect HTTP POST requests, as described here
return
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, params) => {
}
const axios = require("axios")
// Forward the incoming email to a workflow that will accept
// data via HTTP POST requests, saving it to an RSS that you
// can retrieve via GET request later. See
// https://pipedream.com/@dylburger/generate-an-rss-feed-from-http-post-requests-retrieve-via-get-request-p_n1CrQG/edit
const { url, secret } = params
return await axios({
url,
method: "POST",
headers: {
secret,
},
// This workflow saves the subject of the email as the
// title of the feed item, and the text as the link.
// PLEASE MODIFY ACCORDING TO YOUR USE CASE
data: {
title: steps.trigger.event.subject,
link: steps.trigger.event.text,
}
})