api: Rename get_members to get_users.
This commit is contained in:
parent
7870512de6
commit
d2b9976015
|
@ -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',
|
||||
|
|
|
@ -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"])
|
Loading…
Reference in a new issue