feedbin / feedbin-api

Feedbin API Documentation
349 stars 26 forks source link

Starred items returning error 403 #73

Open kTag opened 10 months ago

kTag commented 10 months ago

I have 63 items in my starred items from the UI, but I can only access 33 from the API. The other 30 are returning error 403. I know I have unsubscribed to a bunch of feeds that the items are from, but why I can see them in the UI and it's not returned through the API? What endpoint am I suppose to call to retrieve the missing 30 items?

benubois commented 10 months ago

Sorry for the trouble! Could you show what you’re doing now that isn’t working?

kTag commented 9 months ago

Thanks for reverting, I'm reading the list of starred entries and I try to retrieve them one by one:

count = 0
session = requests.Session()
session.auth = ('YYY','XXX')
res=session.get('https://api.feedbin.com/v2/starred_entries.json')
for entry in ast.literal_eval(res.content.decode('UTF-8')):
    str_entry=str(entry)
    res=session.get(f'https://api.feedbin.com/v2/entries/{str_entry}.json')
    if res.status_code == 200:
        print(res.content)
        count = count + 1
print(count)

I get 33 expected entries and for 30 of them I get an error 403