From df26310d1b2ba959109044433bf8c44b3932fcd9 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Fri, 8 Sep 2017 15:25:49 +0200 Subject: Add notification dismissal --- mastodon/Mastodon.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 7a93d6c..0374427 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -628,6 +628,13 @@ class Mastodon: """ return self.__api_request('POST', '/api/v1/notifications/clear') + + def notifications_dismiss(self, id): + """ + Deletes a single notification + """ + return self.__api_request('POST', '/api/v1/notifications/dismiss') + ### # Writing data: Accounts ### -- cgit v1.2.3