sismics / reader

Free and open source feeds reader, including all major Google Reader features
https://www.sismics.com/reader/
GNU General Public License v2.0
400 stars 98 forks source link

API calls #159

Closed joogoo closed 6 years ago

joogoo commented 6 years ago

It's not really an issue but rather a question about reader's capabilities.

I would like to proceed to a natural language analysis on retrieved articles in order to categorize publications.

Do you think it's possible to make direct calls on reader API ? And if so, can you detail the way to do that ?

Thanks a lot !

jendib commented 6 years ago

Yes of course, first you need to login: POST /api/user/login with "username" and "password" parameters It will give you an authentication cookie with a Set-Cookie header. Save it and provide it in the following API calls (in a Cookie header).

Then to fetch all articles, you can call: GET /api/all?unread=false&limit=50 for the first page GET /api/all?unread=false&limit=50&after_article= for the following pages

Don't hesitate to inspect the network traffic in your browser while you are using Reader to check other API endpoints.

joogoo commented 6 years ago

Fantastic !

This works as expected. I'll have look the network traffic to get hints on the other API endpoints.