diff options
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 6897bc6..f5bf4ac 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -1495,6 +1495,21 @@ class Mastodon: | |||
1495 | params = self.__generate_params(locals()) | 1495 | params = self.__generate_params(locals()) |
1496 | self.__api_request('POST', '/api/v1/notifications/dismiss', params) | 1496 | self.__api_request('POST', '/api/v1/notifications/dismiss', params) |
1497 | 1497 | ||
1498 | |||
1499 | ### | ||
1500 | # Writing data: Conversations | ||
1501 | ### | ||
1502 | def conversations_read(self, id): | ||
1503 | """ | ||
1504 | Marks a single conversation as read. | ||
1505 | |||
1506 | WARNING: This method is currently not documented in the official API and | ||
1507 | might therefore be unstable. | ||
1508 | """ | ||
1509 | id = self.__unpack_id(id) | ||
1510 | url = '/api/v1/conversations/{0}/read'.format(str(id)) | ||
1511 | return self.__api_request('POST', url) | ||
1512 | |||
1498 | ### | 1513 | ### |
1499 | # Writing data: Accounts | 1514 | # Writing data: Accounts |
1500 | ### | 1515 | ### |