- Introduction
Hello everybody, today I wanted to share a tool that most people probably know, but it's always a benefit to do an post on it.
Make a simple Webhook request to each post on Dev.to.
The system is very simple, it will retrieve the RSS feed from dev.to and every time there is a new entry, IFTTT will start and send a message in Webhook.
In this example, my Webhook output is on Discord, a communication platform that is widely used by players, developers, communities and other people.
- Setup
1) To get started, log in or create your IFTTT account.
2) Start to click on New Applet
3) If RSS Feed ▶️ New Feed Item ▶️ In the Feed URL, put 'https://dev.to/feed' or 'https://dev.to/rss' ▶️ Create trigger
4) then Webhooks ▶️ Make a web request.
For the webhooks settings on Discord, here is an example to do :
URL | https://discord.com/api/webhooks/524350588369240075/tcQJ9ioe9VMlvgLuRMoen0iWNx2DP43z-qcxUA5Vq3jkioe92P3EdIjq7Uapn |
---|---|
Method | POST |
Content Type | application/json |
Body |
For your body, you can send an embed message on Discord.
{
"embeds": [{
"author":{
"name":"{{EntryTitle}}",
"url":"{{EntryUrl}}"
},
"footer":{
"text":"Auteur : {{EntryAuthor}}",
"icon_url":"https://cdn.discordapp.com/attachments/377205421640908810/526770363456159768/apple-icon-5c6fa9f2bce280428589c6195b7f1924206a53b782b371cfe2d02da932c8c173.png"
},
"color":1776669
}]
}
If you don't want an embed, but only a simple message with the title and URL of the new post :
{"content": "[{{EntryTitle}}]({{EntryUrl}}) was posted by {{EntryAuthor}}"}
- Example of the output of Webhook on Discord
And here is an example that posts every day on my server, being a few developers on it, we like to have everything within reach as quickly as possible. And since it's the best way to communicate, whether written or vocal, I preferred to make a simple IFTTT condition in order to get the RSS feed and put it in.
📷 I also made another IFTTT system, this one was already prepared on the platform. Every day, once in the morning and once in the evening, the Twitter account @Splash_Everyday tweet a photo from Unsplash.
__
By the way, I'm looking for any RSS feed I could add to my list of Webhooks, if you have any, comment them just below, and I'll see if it can be useful!
☕ | Check my Twitter account. You can see many projects and updates. You can also support me on Buy Me a Coffee, Stripe or GitHub Sponsors. Thanks for read my post ! 🤩 |
---|