api: Rename get_members to get_users.

This commit is contained in:
Kartik Srivastava 2020-04-19 23:55:53 +05:30 committed by Tim Abbott
parent 7870512de6
commit d2b9976015
2 changed files with 3 additions and 3 deletions

View file

@ -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',

View file

@ -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"])