dystroy is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
dystroy @denys_seguret

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.

· Web · 0 · 0

@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) ?

@denys_seguret With the toot url ? by clicking on the xx minutes ago link for example ?

@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 octodon.social/@denys_seguret/

I'll probably do a toot boxing for the Miaou chat

@Linuxine I added Toot boxing to Miaou using the approach I proposed yesterday.

Here's the code: github.com/Canop/miaou.mastodo

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)

octodon.social/media/wW1tGl6jw

@Linuxine It looks like this should work:

octodon.social/users/denys_seg

But it doesn't. I'm obviously missing something simple...