![]() ![]() I was surprised and delighted by how easy it was to set up. Expose Express API as a single Cloud Function:Įxports.publish = (app) If (ems = undefined || = 0) * published. Automatically allow cross-origin requests const functions = require('firebase-functions') Webhooks are basically custom bots anyone can create within 10 seconds with a custom avatar and username that the bot can redirect feed articles to so the bot. Instead, compare the transactionid field of each newly fetched transaction to the transactionid fields of your existing transactions, and skip the ones that you already have. Then, when it finds a feed, it will ping a configured URL (in my case my Cloud Function in Firebase) with an XML or JSON representation of the newly found feed data - all you have to do is parse the data and do something with it. For example, new transactions may arrive between your receipt of the webhook and your call to /transactions/get. Superfeedr is a service that can listen to Pubsubhubbub pings (now WebSub) and it will also poll RSS feeds that don’t have Pubsub set up. I used Firebase functions - I suspect that this is just as easy on other Function-as-a-service sites - and Superfeedr. It was pretty simple in the end, and I’ve included all the code below. pipes are used to inject RSS item attributes into the JSON. The JSON data to be sent is configurable to be any tree structure you like. The webhook can be configured to either POST or GET a custom JSON object. It wasn’t until recently that I found out that it was pretty easy to create a simple post-only bot via Webhooks, and that gave me the idea: I can create a simple service that polls RSS feeds and then sends them to our Webhook that can post directly in to our team chat. RSS feeds are set up here with a URL and authentication options. We also create a lot of content that is accessible via RSS feeds, we even have a team feed that you can all view. We have put together some additional examples to supplement our article on incoming. We use Google Chat internally a lot to communicate across our team - it’s kinda like our slack. Zapier - Incoming Webhooks for Twitch, Twitter & RSS Feeds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |