This blog post is more than two years old.
It is preserved here in the hope that it is useful to someone, but please be
aware that links may be broken and that opinions expressed here may not reflect
my current views. If this is a technical article, it may no longer reflect
current best practice.
Annoyingly, the API for Mastodon is different enough from the API for Twitter
that I’ve needed to use a new library in metrics-bot. I’m using the
mastodon4j library for now, but I’m
really using so little of the API I do wonder if it would be easier to just
reimplement the parts that are needed and drop the rest. The only part I’m
really worried about is the OAuth authentication and I’m
sure that won’t be anywhere near as bad as I think it will be.