diff options
author | Lorenz Diener <[email protected]> | 2019-04-28 13:58:18 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-04-28 13:58:18 +0200 |
commit | ac7196c443db8453ccb6c3c2407c9e844ea4cbae (patch) | |
tree | a8e3b7f1f3e8c42ebbca7b4d2362e0e53b5d7670 /mastodon | |
parent | 06df1c281eb0825ec9f646960f4d9426eba7e081 (diff) | |
download | mastodon.py-ac7196c443db8453ccb6c3c2407c9e844ea4cbae.tar.gz |
Add conversation read marking + tests/docs
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 | ### |