SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
egeres@lemmy.world to Programming@programming.dev · 11 months ago

Question: How to curl the lemmy API?

message-square
message-square
19
fedilink
47
message-square

Question: How to curl the lemmy API?

egeres@lemmy.world to Programming@programming.dev · 11 months ago
message-square
19
fedilink

I’ve seen these posts

  • https://lemmy.world/post/2499903
  • https://lemmy.techhaven.io/post/31617

But actually I haven’t been able to figure out exactly how to get the posts a user has made in lemmy. I’ve seen this page but I think this is for a different lemmy instance, I’m not sure https://join-lemmy.org/api/interfaces/GetPosts.html

Can anyone point me to a documentation on how to make this?

  • tmpod@lemmy.pt
    link
    fedilink
    arrow-up
    6
    ·
    11 months ago

    +1 for lemmy.readme.io, it’s much easier to read than a JS lib documentation.

    • MV (Jerboa dev)@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      Looks like the best openapi front. I looked into using it, but it didn’t seem free. Too bad this one is outdated. Lemmys API has changed quiet a bit since then.

      • tmpod@lemmy.pt
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        readme.com (aka readme.io) ain’t libre, but it has a free plan.
        I also think it’s a bit on the heavy side, but what isn’t these days…

        • MV (Jerboa dev)@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          11 months ago

          Ah yes, all though I ve never really experienced HTTP days in their full glory

          I’ll look into using it. If it has a github action or easy way to publish it from cli

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 51 users / day
  • 562 users / week
  • 3.18K users / month
  • 7.49K users / 6 months
  • 312 local subscribers
  • 20.6K subscribers
  • 2.27K Posts
  • 35.4K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
    cake
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • UlrikHD@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org