this post was submitted on 19 Jun 2023
3 points (100.0% liked)
Lemmy App Development
788 readers
1 users here now
A place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform.
On-Topic:
- programming questions related to the Lemmy platform
- sharing your ideas, WIP, or released Lemmy-related work
Off-Topic:
- general programming questions unrelated to Lemmy
- feature requests for developers
- sharing or promoting work not related to Lemmy
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Quick update for anyone reading this:
I've just worked out how to use curl with the Lemmy API, and sadly
curl -H 'Accept: application/activity+json' "https://lemmy.world/api/v3/comment/list?limit=10&postId=290602"
does show the comments, so I had to accept that there's something wrong in my request.Having fiddled about a bit it appears that setting the
type
parameter controls whether non-local comments get included, so addingtype: CommentListingType.all
solved this problem.Hi! The first curl example doesn't seem to work - it fetches comments but they are not relevant to https://lemmy.world/post/290602 :
It seems that we need to set
type_
parameter like this: