api: Implement POST /typing.

This commit is contained in:
Yago González 2018-08-09 20:15:50 +02:00 committed by Eeshan Garg
parent 39fb287fba
commit a17e8954a8

View file

@ -1182,6 +1182,22 @@ class Client(object):
request=request, request=request,
) )
def set_typing_status(self, request):
# type: (Dict[str, Any]) -> Dict[str, Any]
'''
Example usage:
>>> client.set_typing_status({
'op': 'start',
'to': ['iago@zulip.com', 'polonius@zulip.com'],
})
{'result': 'success', 'msg': ''}
'''
return self.call_endpoint(
url='typing',
method='POST',
request=request
)
class ZulipStream(object): class ZulipStream(object):
""" """
A Zulip stream-like object A Zulip stream-like object