Module: Slack::Web::Api::Endpoints::UsergroupsUsers
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/usergroups_users.rb
Instance Method Summary collapse
-
#usergroups_users_list(options = {}) ⇒ Object
This method returns a list of all users within a User Group.
-
#usergroups_users_update(options = {}) ⇒ Object
This method updates the list of users that belong to a User Group.
Instance Method Details
#usergroups_users_list(options = {}) ⇒ Object
This method returns a list of all users within a User Group.
17 18 19 20 |
# File 'lib/slack/web/api/endpoints/usergroups_users.rb', line 17 def usergroups_users_list( = {}) throw ArgumentError.new('Required arguments :usergroup missing') if [:usergroup].nil? post('usergroups.users.list', ) end |
#usergroups_users_update(options = {}) ⇒ Object
This method updates the list of users that belong to a User Group. This method replaces all users in a User Group with the list of users provided in the users parameter.
33 34 35 36 37 |
# File 'lib/slack/web/api/endpoints/usergroups_users.rb', line 33 def usergroups_users_update( = {}) throw ArgumentError.new('Required arguments :usergroup missing') if [:usergroup].nil? throw ArgumentError.new('Required arguments :users missing') if [:users].nil? post('usergroups.users.update', ) end |