this post was submitted on 04 Jul 2023
6 points (87.5% liked)
Lemmy Support
4650 readers
15 users here now
Support / questions about Lemmy.
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
For subscribed communities you have to add an
auth
parameter (that you can obtain by POST'ing{username_or_email: "your_name", password: "your_password"}
to/user/login
, then extracting thejwt
from the response) andtype_=Subscribed
. A complete request would look like that:curl "https://mander.xyz/api/v3/community/list?auth=verylongstring&type_=Subscribed" | jq
Rofl I don't know why someone downvoted you, this was nice information thanks.
I like to add that the keys must be wrapped in double quotes to be parsed as proper JSON.
You are totally right, seems like I forgot them ^^'