this post was submitted on 15 Jun 2023
18 points (95.0% liked)

Transfem

3205 readers
25 users here now

A community for transfeminine people and experiences.

This is a supportive community for all transfeminine or questioning people. Anyone is welcome to participate in this community but disrupting the safety of this space for trans feminine people is unacceptable and will result in moderator action.

Debate surrounding transgender rights or acceptance will result in an immediate ban.

Posters may express that they are looking for responses and support from groups with certain experiences (eg. trans people, trans people with supportive parents, trans parents.). Please respect those requests and be mindful that your experience may differ from others here.

To make such a request, at the start of the body of your post, not in the title, the first line should look like the this: [Requesting Engagement from _________]

Some helpful links:

Support Hotlines:

founded 1 year ago
MODERATORS
 

I did: curl https://lemmy.blahaj.zone/api/v3/community/list

I got 4 communities and "egg_irl" wasn't there...? why it is on !egg_irl? I'm confused and the lemmy api docs aren't beginner friendly... ahhhh And I know the most of you know how to code.

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 12 points 1 year ago

I just looked at the Rust code from https://github.com/LemmyNet/lemmy/blob/main/crates/api_common/src/community.rs

and it looks like you need to give it params to get what you need, i.e.

curl https://lemmy.blahaj.zone/api/v3/community/list?type_=Local\&sort=Active\&limit=50 | jq

Returns the top 50 local communities sorted by Active

[–] solivine 10 points 1 year ago (2 children)

I had something like this recently, I tried to find the community "[email protected]" (found from lemmyverse.net) but searching that in the search bar gave nothing. I also searched vintage, and the first time I searched it that also yielded nothing, but the second time it did. There does seem to be a little inconsistency but I'm sure they're working on it! :)

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

Lemmy posted my bot created post in the wrong instance, I think Lemmy has problems with instances.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

The search thing is normal if no other user on our instance has searched/subscribed to that community. Annoying but if you know you got the link right, hit reload and the server will usually have loaded it lol

[–] ActuallyASeal 5 points 1 year ago* (last edited 1 year ago) (1 children)

Finding the docs for the API end points is a pain in the ass. Best I found is this but it seems to be version 1 of the API.

Looking at the communities/list end point I the request can have the following arguments.

{ op: "ListCommunities", data: { sort: String, page: Option<i64>, limit: Option<i64>, auth: Option<String> } } Looks like there are multiple pages you probably only got page 1.

Try: curl https://lemmy.blahaj.zone/api/v3/community/list?page=2

[–] [email protected] 2 points 1 year ago (1 children)

On the Lemmy website when I click documentation for the api it just takes me to the JavaScript client directly!

[–] ActuallyASeal 1 points 1 year ago (1 children)

You should be able to figure out the http calls from here.

[–] [email protected] 2 points 1 year ago

thank you 💜

load more comments
view more: next ›