diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index a363955..7a2f387 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -1133,9 +1133,9 @@ class Client: request=request ) - def get_members(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, Any]: + def get_users(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, Any]: ''' - See examples/list-members for example usage. + See examples/list-users for example usage. ''' return self.call_endpoint( url='users', diff --git a/zulip/zulip/examples/list-members b/zulip/zulip/examples/list-users similarity index 91% rename from zulip/zulip/examples/list-members rename to zulip/zulip/examples/list-users index 934b59a..6b428f6 100755 --- a/zulip/zulip/examples/list-members +++ b/zulip/zulip/examples/list-users @@ -18,5 +18,5 @@ options = parser.parse_args() client = zulip.init_from_options(options) -for user in client.get_members()["members"]: +for user in client.get_users()["members"]: print(user["full_name"], user["email"])