35
Introducing Connect for Lemmy
(i.imgur.com)
A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.
Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.
Subcommunities on Beehaw:
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
Damn that looks awesome! Did you find any good docs on the API? I only found the lemmy-js-client, which is a library, though. Wanted to do some shenanigans with Python and Lemmy, but there doesn't seem to be too much documentation...
https://join-lemmy.org/api/classes/LemmyHttp.html
I had a hard time with the API docs too to be honest. I read through https://join-lemmy.org/docs/contributors/04-api.html first but it was pretty high level. My main reference was the typing on the lemmy-js-client as well. I used the Dart Lemmy API client here https://github.com/LemmurOrg/lemmy_api_client but unfortunately it's not being maintained (and didn't work without modification since the API has changed since then).
For what it's worth, it should be possible to use the ActivityPub API, which is just a traditional JSON API with a JSON-LD
@context
field you can probably safely ignore (as long as the context uses vocabulary from activitystreams). For example, try running this request:The nice thing about the ActivityPub API is that all the fields should be documented. If you run your response through a JSON-LD expander, you can often take the resulting field names and "dereference" them (aka open them in a browser) to find documentation on what those fields mean.