Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions feedly/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,22 @@ def get_user_read(self, access_token, newerThan=None):
res = requests.get(url=request__url, data=params, headers=headers)
return res.json()

def get_unread_counts(self, access_token, streamId=None, newerThan=None, autorefresh=None):
"""
Get the list of unread counts
"""
headers = {'Authorization': 'OAuth ' + access_token}
request__url = self._get_endpoint("v3/markers/counts")
params = {}
if streamId is not None:
params['streamId'] = streamId
if newerThan is not None:
params['newerThan'] = newerThan
if autorefresh is not None:
params['autorefresh'] = autorefresh
res = requests.get(url=request__url, data=params, headers=headers)
return res.json()


# Categories
def get_categories(self, access_token):
Expand Down