From d2b997601530ebda938dce85ff8b504a8ab321f2 Mon Sep 17 00:00:00 2001 From: Kartik Srivastava Date: Sun, 19 Apr 2020 23:55:53 +0530 Subject: [PATCH] api: Rename get_members to get_users. --- zulip/zulip/__init__.py | 4 ++-- zulip/zulip/examples/{list-members => list-users} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename zulip/zulip/examples/{list-members => list-users} (91%) 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"])