seazon / FeedMe

The documents and forum of FeedMe
1.19k stars 27 forks source link

Readeck Integration #711

Open t34wrj opened 2 months ago

t34wrj commented 2 months ago

It would be great if integration with Readeck (a self-hosted Pocket, in effect) could be added.

seazon commented 2 months ago

Checked the site but not find the api doc.

t34wrj commented 2 months ago

Thanks for checking. I've found the following on my self-hosted instance of Readeck - is this any help?

_Readeck API 1.0.0 Introduction The Readeck API provides REST endpoints that can be used for any purpose, should it be a mobile application, a script, you name it.

API Endpoint You can access this API on https://readeck.REDACTED.com/api.

Most of your requests and responses are using JSON as the exchange format.

Authentication To use the API, you first need to create an authentication token. You can then use your new token using the Bearer HTTP authorization scheme.

For example, you first request will look like:

curl -H "Authorization: Bearer " https://readeck.REDACTED.com/api/bookmarks Or, in NodeJS:

fetch("https://readeck.REDACTED.com/api/bookmarks", { headers: { "Authorization": "Bearer ", }, }) First time authentication While you can create an authentication token from Readeck, you can also get one directly from the API. This provides a mechanism to ask for user credentials and obtain a token for your app only.

Please refer to POST /auth for more information.

Test the API On this documentation, you can test every route.

If you don't provide an API token in Authentication, you can still test all the routes but note that the given curl examples only work with an API token._

seazon commented 2 months ago

I can't open this: https://readeck.REDACTED.com/api

t34wrj commented 2 months ago

You won't be able to as I redacted it to remove my username from the URL. Having checked, it's not actually a hyperlink in the source page that I copied the above text from.

t34wrj commented 1 month ago

I have raised the API issue with the developer and his comments are here: https://codeberg.org/readeck/readeck/issues/166