Is there an authentication-less API (ideally REST) letting you fetch one or several toots without having to parse HTML ?
All the API I find seem to be designed for complex clients and involve registering with the involved instances.
@Linuxine Thanks. I see how I can get a user's feed. But how would I get a specific toot (having the instance's URL, the author's name and the toot's ID) ?
@Linuxine yes but this gives you the toot in HTML. I was looking for something clean, without having to parse HTML (XML would be OK, JSON would be great).
@denys_seguret oh ok, sorry, I didn't understood ^^ not sure this is possible, but I am still discovering the service !
@denys_seguret if you find an easy way to embed the toots in a website, like the twitter widget, I'm interested :D
@Linuxine The URL of the relevant atom message is in the HTTP headers. So it looks like we can simply do a HEAD request to get the atom URL:
curl -I https://octodon.social/@denys_seguret/100014
I'll probably do a toot boxing for the Miaou chat
@denys_seguret didn"t know Miaou, seems nice :)
@Linuxine I added Toot boxing to Miaou using the approach I proposed yesterday.
Here's the code: https://github.com/Canop/miaou.mastodon
Warning: there's not much test for now, especially on remote mastodon instances (and I don't know whether Atom support is general)
Here's a picture (with several boxings)
@Linuxine It looks like this should work:
https://octodon.social/users/denys_seguret/updates/340688.atom
But it doesn't. I'm obviously missing something simple...
@denys_seguret With the toot url ? by clicking on the xx minutes ago link for example ?