PicoBlaanket@lemmy.mltoLemmy@lemmy.ml•Lemmy API documentation is challenging to work withEnglish
4·
1 year agoYes exactly - living on the edge!
One way to learn the new API is - explore the code of (similar) extensions and browser scripts, to see how they build and send their calls.
Yeah, I understand what you mean (after a year of exploring the Web Socket).
FYI - that lemmy auth value is pulled from a JWT cookie in the browser, which you can access in JS by
document.cookie
. It is required for any API calls which are user-specific (saved posts, subscribed communities, etc).