api: Implement GET /realm/emoji.

This commit is contained in:
Yago González 2018-07-03 20:07:51 +02:00 committed by Eeshan Garg
parent a96c3f0db0
commit 4d9b3226fd
2 changed files with 28 additions and 0 deletions

View file

@ -769,6 +769,16 @@ class Client(object):
method='GET'
)
def get_realm_emoji(self):
# type: () -> Dict[str, Any]
'''
See examples/realm-emoji for example usage.
'''
return self.call_endpoint(
url='/realm/emoji',
method='GET'
)
def get_events(self, **request):
# type: (**Any) -> Dict[str, Any]
'''

View file

@ -0,0 +1,18 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import zulip
usage = """realm-emoji [options]
Example: realm-emoji
"""
parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage))
options = parser.parse_args()
client = zulip.init_from_options(options)
print(client.get_realm_emoji())