There are 3 articles with a tag of code.
Using PHP and cURL to post media to the Mastodon API
A couple of years ago I posted the most popular article on the site on how to use PHP and cURL to post to the Mastodon API. Since then I've been meaning to post a follow-up -on how to post media and finally it's here.
Using PHP and cURL to post to the Mastodon API
As my distaste for Twitter has grown over the last while I decided to see if I could deploy my own instance of Mastodon, a federated, distributed social network. Turns out I had my instance up and running in just a few hours using a $10 a month Digital Ocean Docker droplet and the handy Mastodon docker containers. It was way easier than I though it would be.
Most of the time I just screw around with things on this site, trying to figure out new technology and generally just breaking stuff that no one really looks at. It's good and helpful and makes me better at what I do. Problem is, I never write about what I learn. It's the same old story: sure, I've been doing this for 20+ years but I'm a dummy and no one wants to read about the lessons of a dummy. It makes perfect sense in my head don't ya know. This post is an attempt to not be like that sometimes, maybe.
I don’t write too often anymore, but when I do, this is where you’ll find it.
Photographs, articles and notes are published when I feel like it. Learn more about subscribing
to keep up-to-date.