3
submitted 1 month ago by [email protected] to c/[email protected]
1
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

✍️ Reusable API proxy in just a few lines of JavaScript

For my project Mentions United, which collects interactions from various platforms via API to display them on the own page, at some point I needed a way to hide the authentication tokens required for some APIs from being used by unauthorized parties. You simply don’t leave your security keys lying around in the code, especially not if it’s publicly visible on GitHub. ...

1
submitted 7 months ago by [email protected] to c/[email protected]
9
submitted 7 months ago by [email protected] to c/[email protected]
[-] [email protected] 2 points 7 months ago

No, not directly, because it depends on the syndications stored in the Frontmatter of my post. But since I have also included Webmentions and Lemmy sends one when crossposting, at least this would be displayed under the post.

[-] [email protected] 4 points 7 months ago

Cool, in the sense that your comment is now part of my post on my blog? Yes...

1
submitted 7 months ago by [email protected] to c/[email protected]

cross-posted from: https://programming.dev/post/21346794

After I recently dived into the Lemmy world and found out which API route I needed for a Lemmy integration as a Mentions United Provider Plugin, the rest was no longer particularly difficult, because the data is very heavy due to many redundancies, but easy to process. So my new plugin is ready and running on this blog to display Lemmy interactions …

https://kiko.io/post/Mentions-United-Lemmy-plugin-a-few-updates/

21
submitted 7 months ago by [email protected] to c/[email protected]

After I recently dived into the Lemmy world and found out which API route I needed for a Lemmy integration as a Mentions United Provider Plugin, the rest was no longer particularly difficult, because the data is very heavy due to many redundancies, but easy to process. So my new plugin is ready and running on this blog to display Lemmy interactions …

https://kiko.io/post/Mentions-United-Lemmy-plugin-a-few-updates/

[-] [email protected] 2 points 7 months ago

Hi mate :) thanks for giving me initial ignition to get into Lemmy and writing the Mention United provider plugin for it. Would love to have a look on your solution.

[-] [email protected] 1 points 7 months ago

Thank you for this detailed information :)

[-] [email protected] 5 points 7 months ago

I have no problem with an API. It's better than a feed. But the payload of the API seems too high to me in times when we should pay attention to resources. Redundancies should always be prevented by clever design.

12
submitted 7 months ago by [email protected] to c/[email protected]

cross-posted from: https://programming.dev/post/21031156

Slightly triggered by the post My blog now has Lemmy comments, I thought it would be a good idea to take a closer look at another great representative of the Fediverse world: Lemmy. Of course, also with an eye on the possibility of developing another Mentions United Provider Plugin, along the lines of what “Coship” can do, I also can do and that for everyone ;) ...

31
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]

Slightly triggered by the post My blog now has Lemmy comments, I thought it would be a good idea to take a closer look at another great representative of the Fediverse world: Lemmy. Of course, also with an eye on the possibility of developing another Mentions United Provider Plugin, along the lines of what “Coship” can do, I also can do and that for everyone ;) ...

[-] [email protected] 2 points 7 months ago

Will try that as soon as I can. Thanks...

13
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]

Posting here also, because [email protected] commented that the API should work as expected on lemm.ee for instance and I don't know where is the right place to post my question. Can someone help?

cross-posted from: https://programming.dev/post/20954226

I try to get comment data for my posts via API from my Lemmy instance, but whatever I try on using the GetComments endpoint it delivers an empty array.

For example ... GET https://programming.dev/api/v3/comment/list?post_id=20878811 leads to:

{
  "comments": []
}

I want to ask here, before creating an issue. Has someone a hint?

[-] [email protected] 2 points 7 months ago

Thank you for the tip ... but whatever I try with the parameter post_ids in curl, my instance running 0.19.5 does not recognize the parameter and I receive a list with the latest comments over all posts ... !?

6
submitted 7 months ago by [email protected] to c/[email protected]

I try to get comment data for my posts via API from my Lemmy instance, but whatever I try on using the GetComments endpoint it delivers an empty array.

For example ... GET https://programming.dev/api/v3/comment/list?post_id=20878811 leads to:

{
  "comments": []
}

I want to ask here, before creating an issue. Has someone a hint?

1
submitted 7 months ago by [email protected] to c/[email protected]

cross-posted from: https://programming.dev/post/20878811

Since I wasn't satisfied with the way syndicated interactions were displayed on my blog, I built something myself with #javascript. What do you think of the idea and implementation?

[-] [email protected] 3 points 7 months ago

It is an interaction collector based on syndications. Currently I'm working on a Lemmy extension to show the discussion below the post.

[-] [email protected] 3 points 7 months ago* (last edited 7 months ago)

:D ... sry, I'm completely new to Lemmy and struggle a bit with some oddities when creating/editing posts

12
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]

Since I wasn't satisfied with the way syndicated interactions were displayed on my blog, I built something myself with #javascript. What do you think of the idea and implementation?

view more: next ›

kiko

0 post score
0 comment score
joined 7 months ago