From c03b8090d5c9bbfc2060d631d360f7dd75309be6 Mon Sep 17 00:00:00 2001 From: Diego Date: Sat, 2 Jun 2018 16:51:28 +0200 Subject: [PATCH] Implement reaload_entry method --- wallabag_api/wallabag.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wallabag_api/wallabag.py b/wallabag_api/wallabag.py index 988f657..81635f5 100644 --- a/wallabag_api/wallabag.py +++ b/wallabag_api/wallabag.py @@ -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}