api: Implement GET /realm/emoji.
MODIFY
zulip/zulip/__init__.py
zulip/zulip/__init__.py
@@ -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]
'''

ADD
zulip/zulip/examples/realm-emoji
+#!/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())

api: Implement GET /realm/emoji.