linkding
linkding copied to clipboard
API compatibility with delicious v1 standard
It would be great if the APi was compatible with delicious v1 standard, as used by pinboard, shiori, etc. https://pinboard.in/api/
If it was compatible then apps that support that standard API could be used with Linkding.
Currently it is close, but incompatible.
I am trying to POST to the API without much success, it feels like reinventing the wheel.
@gingerbeardman what sort of existing applications did you have in mind?
I use Android and whilst there is a (slightly complicated) option for Share To with Android and LinkDing https://github.com/sissbruecker/linkding/commit/68143de992e471bb9a5d451e7ffd3380a3ec0ec9.
I had a similar idea to yours but with the Shaarli REST API (again to avoid modifying existing clients). https://github.com/dimtion/Shaarlier is a send to Shaarli tool that works and I was wondering about adding the bare minimum to support info and add/create so this could be used natively with LinkDing (with some vague hand-waving on how to deal with the difference in authentication implementation between the two, Shaarli uses JWTs).
On Mac
- https://apps.apple.com/gb/app/bookmarker-for-pinboard/id1451400394?mt=12 (open source)
- https://aki-null.net/shiori/
On iPhone
- https://apps.apple.com/gb/app/pinner-for-pinboard/id591613202
That Android app looks like just the ticket. I could not get the iOS share sheet tip to work, it would be a good start as I use the add interface mostly.
There are lots of great iOS and macOS apps that are targetted at the delicious v1 API that Pinboard uses.
For your idea of Shaarli there are fewer apps for iOS/macOS but I just found one: https://github.com/hartlco/aarle
@gingerbeardman I had some free time today and made a start on https://github.com/clach04/fake-shaarli-server - at this stage it's only a proof of concept, it pretends to understand enough of the Shaarli api so a couple of clients work. But this server doesn't do anything at the moment. Sharing now, in case you have time/energy to look at it and think about doing something for delicious v1 standard.
I stumbled across issue #98 today which is pretty much what I would like but I'm planning on trying to wrap up the server so it does what I want it to do.
There's also the amazing Pinkt app on Android. Re-using it would be a huge plus! :)
@rounakdatta interesting idea, I'm assuming Pinkt uses the old v1 API http://pinboard.in/api (rather than http://pinboard.in/api/v2/overview)? That would get you 50% of the way there :)
I took a quick scan and did install https://github.com/fibelatti/pinboard-kotlin BUT it appears to be hard coded to using http://pinboard.in/ so unless you want to add support for configurable URLs that's unlikely to fly :(
https://github.com/dimtion/Shaarlier works with LinkDing (via the bridge above) because Shaarlier allows config of the server end point.
@clach04 I went back to Pinboard, but I really do not align with the guy who runs it. So here I am a year on with a bit of time on my hands and I am trying to move away from it again.
My main motivation is to keep using the existing tools for interacting with Pinboard (Pinner/PinShard on iOS, Shiori/Alfred on macOS). There's a good Linkding app for iOS, so that just leaves macOS.
So I am part way through creating a Pinboard/Delicious V1 compatible API (in PHP, which is what I know least bad) that is a thin layer redirecting to Linkding.
I have hex edited the tool I use to add bookmarks, replacing api.del.icio.us
with a short URL of my own.
And I just added my first URL to Linkding using this setup :)
So thanks for the idea!