api: Add get_members wrapper for get_users for backwards compatibility.

This commit is contained in:
Kartik Srivastava 2020-04-20 00:19:41 +05:30 committed by Tim Abbott
parent d2b9976015
commit 16737e4ed3

View file

@ -1143,6 +1143,13 @@ class Client:
request=request,
)
def get_members(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
# This exists for backwards-compatibility; we renamed this
# function get_users for consistency with the rest of the API.
# Later, we may want to add a warning for clients using this
# legacy name.
return self.get_users(request=request)
def get_alert_words(self) -> Dict[str, Any]:
'''
See examples/alert-words for example usage.