[GH-ISSUE #208] Clone Pocket API? #152

Closed
opened 2026-02-25 23:33:34 +03:00 by kerem · 12 comments
Owner

Originally created by @eabra on GitHub (Oct 24, 2019).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/208

Would it be possible to offer a clone of the Pocket API so other Tools could connect and add/remove items here?

Originally created by @eabra on GitHub (Oct 24, 2019). Original GitHub issue: https://github.com/go-shiori/shiori/issues/208 Would it be possible to offer a clone of the Pocket API so other Tools could connect and add/remove items here?
kerem 2026-02-25 23:33:34 +03:00
Author
Owner

@8bitgentleman commented on GitHub (Nov 2, 2019):

Shiori already has an API, not as robust as Pocket's obviously but it lets you add/edit/remove bookmarks among other things

<!-- gh-comment-id:549047926 --> @8bitgentleman commented on GitHub (Nov 2, 2019): Shiori already has an API, not as robust as Pocket's obviously but it lets you add/edit/remove bookmarks among other things
Author
Owner

@cocoastorm commented on GitHub (Nov 4, 2019):

what other tools did you have in mind? just curious

<!-- gh-comment-id:549459233 --> @cocoastorm commented on GitHub (Nov 4, 2019): what other tools did you have in mind? just curious
Author
Owner

@eabra commented on GitHub (Nov 5, 2019):

Oh there are so many: miniflux, Reeder, self built tools, etc.

<!-- gh-comment-id:549734342 --> @eabra commented on GitHub (Nov 5, 2019): Oh there are so many: miniflux, Reeder, self built tools, etc.
Author
Owner

@8bitgentleman commented on GitHub (Nov 5, 2019):

All those tools are rss readers. Are you really looking for shiori to publish a user's saved links as a private rss feed?
This is how pocket uses rss feeds

<!-- gh-comment-id:549790573 --> @8bitgentleman commented on GitHub (Nov 5, 2019): All those tools are rss readers. Are you really looking for shiori to publish a user's saved links as a private rss feed? [This is how pocket uses rss feeds](https://help.getpocket.com/article/1074-can-i-subscribe-to-my-list-via-rss)
Author
Owner

@eabra commented on GitHub (Nov 5, 2019):

No I'm looking for a way to have the RSS readers send the links to shiori without having to build new API integrations for it but instead utilize the cloned pocket API so they won't have to modify their applications this way.

<!-- gh-comment-id:549809177 --> @eabra commented on GitHub (Nov 5, 2019): No I'm looking for a way to have the RSS readers send the links to shiori without having to build new API integrations for it but instead utilize the cloned pocket API so they won't have to modify their applications this way.
Author
Owner

@deanishe commented on GitHub (Aug 7, 2020):

No I'm looking for a way to have the RSS readers send the links to shiori without having to build new API integrations

Pretty much pointless, tbh. Even if an app isn't using the Pocket SDK, the API is still based on OAuth (which is large and complex) and every app will have its own consumer key and the Pocket API URL hardcoded.

As a result, adding support for a clone of the Pocket API to an app is actually much more complicated than adding support for an entirely different, but much simpler, API.

Either way, I just don't see many (if any) app developers buying into it.

The "Share" menu would be a far better starting point for integration, imo, because it doesn't rely on application developers to modify their apps.

<!-- gh-comment-id:670252346 --> @deanishe commented on GitHub (Aug 7, 2020): > No I'm looking for a way to have the RSS readers send the links to shiori without having to build new API integrations Pretty much pointless, tbh. Even if an app isn't using the Pocket SDK, the API is still based on OAuth (which is large and complex) and every app will have its own consumer key and the Pocket API URL hardcoded. As a result, adding support for a clone of the Pocket API to an app is actually much more complicated than adding support for an entirely different, but much simpler, API. Either way, I just don't see many (if any) app developers buying into it. The "Share" menu would be a far better starting point for integration, imo, because it doesn't rely on application developers to modify their apps.
Author
Owner

@samuelstevens commented on GitHub (Mar 8, 2022):

All those tools are rss readers. Are you really looking for shiori to publish a user's saved links as a private rss feed?

Sorry to open a dead issue two years later, but this is exactly what I'm looking for. I'd like to save links to a self-hosted service and then subscribe to a list of those links with a third-party rss reader. Is this possible?

<!-- gh-comment-id:1061942883 --> @samuelstevens commented on GitHub (Mar 8, 2022): > All those tools are rss readers. Are you really looking for shiori to publish a user's saved links as a private rss feed? Sorry to open a dead issue two years later, but this is exactly what I'm looking for. I'd like to save links to a self-hosted service and then subscribe to a list of those links with a third-party rss reader. Is this possible?
Author
Owner

@fmartingr commented on GitHub (Mar 10, 2022):

Sorry to open a dead issue two years later, but this is exactly what I'm looking for. I'd like to save links to a self-hosted service and then subscribe to a list of those links with a third-party rss reader. Is this possible?

This is not integrated withing shiori (and probably never will), but creating an RSS feed from the Get Bookmarks endpoint using your preferred fields should be trivial.

<!-- gh-comment-id:1064580780 --> @fmartingr commented on GitHub (Mar 10, 2022): > Sorry to open a dead issue two years later, but this is exactly what I'm looking for. I'd like to save links to a self-hosted service and then subscribe to a list of those links with a third-party rss reader. Is this possible? This is not integrated withing shiori (and probably never will), but creating an RSS feed from the [Get Bookmarks](https://github.com/go-shiori/shiori/wiki/API#get-bookmarks) endpoint using your preferred fields should be trivial.
Author
Owner

@samuelstevens commented on GitHub (Mar 11, 2022):

Thanks! One thing that I find really exciting about Shiori is automatic content extraction. I looked through the API docs and couldn't see anyway to get that content via the API; did I miss something? Or should I fork/open a PR if I want to see that in Shiori?

<!-- gh-comment-id:1065246117 --> @samuelstevens commented on GitHub (Mar 11, 2022): Thanks! One thing that I find really exciting about Shiori is automatic content extraction. I looked through the API docs and couldn't see anyway to get that content via the API; did I miss something? Or should I fork/open a PR if I want to see that in Shiori?
Author
Owner

@fmartingr commented on GitHub (Mar 12, 2022):

Thanks! One thing that I find really exciting about Shiori is automatic content extraction. I looked through the API docs and couldn't see anyway to get that content via the API; did I miss something? Or should I fork/open a PR if I want to see that in Shiori?

You're right! Content is not exposed through the API :(

Right now I could see this in two ways, either a new /content/:id endpoint to extract the content of a specific bookmark or a parameter in the /bookmarks endpoint to specify if we want the content extracted as well in the output.

I'd prefer the first one, I'm not very fond of parameters modifying an API response and the performance will dimisish the more bookmarks a database has; even if right now the /bookmarks performs a JOIN with the content table, this won't be like that in the future due to performance issues. (sqlite: #387)

What do you think?

<!-- gh-comment-id:1065863274 --> @fmartingr commented on GitHub (Mar 12, 2022): > Thanks! One thing that I find really exciting about Shiori is automatic content extraction. I looked through the API docs and couldn't see anyway to get that content via the API; did I miss something? Or should I fork/open a PR if I want to see that in Shiori? You're right! Content is not exposed through the API :( Right now I could see this in two ways, either a new `/content/:id` endpoint to extract the content of a specific bookmark or a parameter in the `/bookmarks` endpoint to specify if we want the content extracted as well in the output. I'd prefer the first one, I'm not very fond of parameters modifying an API response and the performance will dimisish the more bookmarks a database has; even if right now the `/bookmarks` performs a `JOIN` with the content table, this won't be like that in the future due to performance issues. (sqlite: #387) What do you think?
Author
Owner

@samuelstevens commented on GitHub (Mar 14, 2022):

I prefer the first approach as well.

I will take a look and see if I can implement a first pass sometime this week. Are there docs for contributing/developers?

<!-- gh-comment-id:1067062225 --> @samuelstevens commented on GitHub (Mar 14, 2022): I prefer the first approach as well. I will take a look and see if I can implement a first pass sometime this week. Are there docs for contributing/developers?
Author
Owner

@fmartingr commented on GitHub (Mar 19, 2022):

I prefer the first approach as well.

I will take a look and see if I can implement a first pass sometime this week. Are there docs for contributing/developers?

Right now there isn't much, everything available is in the wiki, though starting working on shiori should be much of a trouble if you have go installed. A Simple go run main.go should suffice. Keep in mind that if you use shiori on your computer directy this will load the same database, you can change it using environment variables. There's also a modd file included in the repository which bundles the assets and launches the development server, but it didn't work for me so I do the manual way.

One of the things I need to work on is updating the documentation (and moving it to the repository #394). I may overhaul how to work locally with shiori while doing that. Any feedback on that regard will be appreciated.

<!-- gh-comment-id:1073012181 --> @fmartingr commented on GitHub (Mar 19, 2022): > I prefer the first approach as well. > > I will take a look and see if I can implement a first pass sometime this week. Are there docs for contributing/developers? Right now there isn't much, everything available is in the wiki, though starting working on shiori should be much of a trouble if you have go installed. A Simple `go run main.go` should suffice. Keep in mind that if you use shiori on your computer directy this will load the same database, you can change it using [environment variables](https://github.com/go-shiori/shiori/wiki/Configuration). There's also a modd file included in the repository which bundles the assets and launches the development server, but it didn't work for me so I do the manual way. One of the things I need to work on is updating the documentation (and moving it to the repository #394). I may overhaul how to work locally with shiori while doing that. Any feedback on that regard will be appreciated.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shiori#152
No description provided.