In the past I have suggested using Power Automate to send updates to Twitter when ever you have new blog posts. This works by creating flows that check for new entries in my RSS feed, then giving the Power Automate tool permission to send tweets to my Twitter account. It works well for me, however, now that Mastodon is a thing I am trying to avoid manually double posting.
So how do you send updates to Mastodon? Mastodon supports a bunch of APIs that rely on Bearer tokens, so the first thing to do is grab the Bearer token. You can define a new token in settings/application page of your instance.
To publish a new status you would use the aptly named statuses end point, for my instance (dotnet.social) it would be found here: https://dotnet.social/api/v1/statuses
. You could use a tool like curl to do this from a CLI, but this blog post is about automation, so I would suggest using IFTT.
There is lots of documentation on creating a new Applet, basically you need a to trigger if a new feed is detected then you want to make a web request.
Make a web request to Mastodon
To execute a web request using IFTT you need to define the following items in the Applet:
- URL (update for your instance): https://dotnet.social/api/v1/statuses
- Method: POST
- Content Type: application/x-www-form-urlencoded
- Additional Headers: Authorization: Bearer
- Body (the “status=” prefix is required): status=New post: <<<{{EntryTitle}}>>> <<<{{EntryUrl}}>>>
That should just about do it!
Why not use Power Automate? I am a fan for Power Automate but using a webhooks is a premium feature I did not want to pay for, and IFTT provides web hooks for free and is really easy to use. The only downside of IFTT I could find is that it only checks your RSS updates on an hourly basis.
It's Elon here.
Please Ignore this message if You are not Doing YouTube..
But
If you are doing YouTube then let me share you:
► 7 Step Cheatsheet for quick Manual Rankings
► 1 Naughty Ninja Technique to Gain The Advantage For Ranking Tough Keywords
Access here >>> https://www.xoxourl.com/vidrankcash
Cheers
Watch this Video
https://www.youtube.com/watch?v=DShNawA-_04
Greetings
Greg
But you owe it to yourself to take a look at some financing options
to grow your business...
The process is soooo easy, an 8 year old could get started.
If your business isn't growing, it's shrinking and failing slowly.
Get started here:
https://www.ezbizfunding.info
- Jake
PS- It's totally free to check out the funding options
But you owe it to yourself to take a look at some financing options
to grow your business...
The process is soooo easy, an 8 year old could get started.
If your business isn't growing, it's shrinking and failing slowly.
Get started here:
https://www.ezbizfunding.info
- Jake
PS- It's totally free to check out the funding options
there is a new Ai tool called Jasper that helps create content for you with a click of a button for your blog or business
Click the Link here to start your free trial -> https://tinyurl.com/Jasper-Free-Trial-Ai-Writer
From
Bernardo Palos
If you dont want to hear about jasper anymore from me fill out this form correctly: https://tinyurl.com/Jasper-Contact-Removal
Believe me or Not, Video Marketing is the NEXT Biggest Thing on 2023.
If Yes, you might save your previous Time & 2X 3X your Productivity with these Tools.
Text to Audio Convertor: https://www.xoxourl.com/speechelo
Rank Videos in 60 Seconds: https://www.xoxourl.com/vidly
Eye CATCHING Thumbnail in minutes: https://www.xoxourl.com/thumbnail
Video Onpage Optimization for #1 Ranking : https://www.xoxourl.com/vmblaster
Cheers.
there is a new Ai tool called Jasper that helps create content for you with a click of a button for your blog or business
Click the Link here to start your free trial -> https://tinyurl.com/Jasper-Free-Trial-Ai-Writer
From
Bernardo Palos
If you dont want to hear about jasper anymore from me fill out this form correctly: https://tinyurl.com/Jasper-Contact-Removal
Save Time And Money Writing Clever, Original Content And End Writer's Block Forever!
Click the Link here to learn more -> bit.ly/Jasper-Free-Trial-Ai-Writer
From
Bernardo Palos
If you dont want to hear about jasper anymore from me fill out this form correctly -> bit.ly/Jasper-Contact-Removal