Reduce @names to just names
This commit is contained in:
parent
0f9ba2bf0a
commit
9beca45ac7
2 changed files with 84 additions and 13 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue