api: Rename get_members to get_users.
MODIFY
zulip/zulip/__init__.py
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',

RENAME
zulip/zulip/examples/list-members
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"])

api: Rename get_members to get_users.