Help

Post to Mastodon

464 3
cancel
Showing results for 
Search instead for 
Did you mean: 
Jason_F
6 - Interface Innovator
6 - Interface Innovator

I am adding Mastodon as an end point for my social needs.

I would like to replicate my Twitter automations and post to Mastodon. Does anyone have any idea how to create a webhook to do that?

3 Replies 3
autumn
5 - Automation Enthusiast
5 - Automation Enthusiast

I think this should be possible with an automation!

You can make a POST request to the Mastodon API using the Run Script action in an automation. Here's the documentation for the fetch() method.

Jason_F
6 - Interface Innovator
6 - Interface Innovator

I wish I was smart enough to figure this out.  Would you mind giving me a sample of the script with this dummy Mastodon status update code?

# Set up

Mastodon mastodon = Mastodon( access_token = 'token.secret', api_base_url = 'https://botsin.space/' ) mastodon.status_post("hello world!")
Jason_F
6 - Interface Innovator
6 - Interface Innovator

Autumn I wanted to follow up with this and see if you would be able to send me an example of the script. I am not a coder and that is where I fall short.