this post was submitted on 11 Jun 2023
4 points (100.0% liked)
Asklemmy
43831 readers
1138 users here now
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Here's what I could find on the api: There's an API section1 of Lemmy documentation that describes some basic information and links to other resources. The
LemmyHttp
class in the linkedlemmy-js-client
documentation lists out the endpoints, parameters, and return values.been playing with it for like 20 minutes and it seems like the documentation and the code are different, so i can't implement any of what they say i can, been trying to just find the answers in the code with no luck cuz apparently the repo is all typescript and there's no code in the main repo, idk where this client's source code is.
have u been able to do any requests w it?
nevermind, i actually did it now 4 minutes after complaining because i saw there's code examples here:
https://github.com/LemmyNet/lemmy/blob/ecc9469a02e63eab4e19093007c7ba6db0dca079/api_tests/src/shared.ts#L4
this works: