Reduce @names to just names

This commit is contained in:
Eryn Wells 2016-09-11 20:01:21 -04:00
parent 0f9ba2bf0a
commit 9beca45ac7
2 changed files with 84 additions and 13 deletions

View file

@ -38,6 +38,12 @@ class SlackService(object):
json = self.__extract_json(r)
return json is not None
def users(self):
params = self.__params()
r = requests.get(self.__url('users.list'), params=params)
json = self.__extract_json(r)
return json['members'] if json else None
#
# Private
#