api: Implement POST /mark_stream_as_read.

This commit is contained in:
Yago González 2018-08-11 13:41:46 +02:00 committed by Tim Abbott
parent ac399d895d
commit 4ab53c9073

View file

@ -776,6 +776,20 @@ class Client(object):
method='POST', method='POST',
) )
def mark_stream_as_read(self, stream_id):
# type: (int) -> Dict[str, Any]
'''
Example usage:
>>> client.mark_stream_as_read(42)
{'result': 'success', 'msg': ''}
'''
return self.call_endpoint(
url='mark_stream_as_read',
method='POST',
request={'stream_id': stream_id},
)
def get_message_history(self, message_id): def get_message_history(self, message_id):
# type: (int) -> Dict[str, Any] # type: (int) -> Dict[str, Any]
''' '''