Implement reaload_entry method

This commit is contained in:
Diego
2018-06-02 16:51:28 +02:00
parent e30e5393f0
commit c03b8090d5

View File

@@ -222,6 +222,20 @@ class Wallabag(object):
ext=self.format)
return await self.query(url, "get", **params)
async def reaload_entry(self, entry):
"""
PATCH /api/entries/{entry}/reload.{_format}
Reload a single entry
:param entry: \w+ an integer The Entry ID
:return data related to the ext
"""
params = {'access_token': self.token}
url = '/api/entries/{entry}/reload.{ext}'.format(entry=entry,
ext=self.format)
return await self.query(url, "patch", **params)
async def patch_entries(self, entry, **kwargs):
"""
PATCH /api/entries/{entry}.{_format}