ETOOBUSY 🚀 minimal blogging for the impatient
Where we see that it is extremely simple to post a status on a social based on Mastodon.
Here, of course, we’re using Perl:
It’s a kind of exercise in minimalism, most probably you should try and use Mojo::UserAgent instead but it’s working.
To use the script, you need to at least set the OAuth 2 token, that you can get from the (web) application. You can also do it from the command line: Obtaining client app access. Just set it in the environment:
# this is optional and can be ignored (it's commented for a reason) #MASTODON_URI='...' # this you MUST populate MASTODON_TOKEN='...' perl postatus 'Hello... myself, this is private by default'
That’s it for today!