Generate an RSS feed from HTTP POST requests, retrieve via GET request
@dylburger
code:
data:privatelast updated:11 months ago
@dylburger/
Generate an RSS feed from HTTP POST requests, retrieve via GET request

Usage

This workflow enables you to create and host an RSS feed using Pipedream.

First, Copy the workflow. Pipedream will automatically generate an HTTP endpoint specific to your workflow. This is the URL you'll use to add items to the feed and to retrieve the feed.

Then, you'll want to set the RSS feed metadata in the rss_channel_metadata: the title of the feed, its target site, etc.

Next, you'll need to add a value for the Secret parameter in the add_new_item step. This ensures only clients with this secret can make POST requests to the feed (see below for an example). Otherwise, anyone would be able to add new items to the feed by knowing the URL alone.

Adding items to the feed

You can add a new item to the feed by making a POST request to your endpoint URL with your secret passed in the Secret header, and the title and item passed in the JSON payload:

curl -H 'Secret: YOUR_SECRET' -d '{"title": "NPR", "link": "https://npr.org"}' https://endpoint.m.pipedream.net

Retrieving the feed

You can retrieve different feeds - RSS, Atom, and JSON - using different URLs:

Modifying the workflow

Once you copy this workflow, it's yours to run and modify. You can change it in any way you'd like.