theoldreader / api

The Old Reader API

Home Page:https://theoldreader.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'it' filter on streams (include tags)

asturcon3 opened this issue · comments

Can you please add support for 'it' parameter for streams?

From InoReader API
it - Include Target - You can query for a certain label with this. Accepted values: user/-/state/com.google/read, user/-/state/com.google/starred, user/-/state/com.google/like.

From bazqux API
it=... - only messages with specific tags (starred items in feed). NB: It's an extension to GR API

My current api call for starred items, working on every other gr-compatible server:
https://theoldreader.com/reader/api/0/stream/contents?output=json&T=...&s=user/-/state/com.google/reading-list&it=user/-/state/com.google/starred

I know I can change the way I retrieve starred items, but every server has its own issues and that query was working nicely elsewhere. I can also make a special case for TOR but maybe this feedback is welcome and you want TOR to be more compatible.

Thank you anyway.

Hey, thank you for feedback. Just wondering, how are you using this feature? Do you make separate API request for each feed in order to retrieve user's starred items?

No. s=reading-list is every item you have. All your items, from all your feeds. it=user/... is a filter to list only starred items. It's just one call.

Ok, that's great. Would it be the same if you just pass s=starred and no it?
Like this: https://theoldreader.com/reader/api/0/stream/contents?output=json&s=user/-/state/com.google/starred

Yes. I opted for my somewhat complex call because of strange behaviour on other servers back in August.

I see. Looks like you're going to change request call for all platforms and I think it's good choice. I'm not sure why anyone need to retrieve starred/liked items from specific feed. Also supporting "it" parameter for only for one case with reading-list doesn't make sense to me.