Module: Slack::Web::Api::Endpoints::AdminTeamsAdmins
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_teams_admins.rb
Instance Method Summary collapse
-
#admin_teams_admins_list(options = {}) ⇒ Object
List all of the admins on a given workspace.
Instance Method Details
#admin_teams_admins_list(options = {}) ⇒ Object
List all of the admins on a given workspace.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/slack/web/api/endpoints/admin_teams_admins.rb', line 20 def admin_teams_admins_list( = {}) raise ArgumentError, 'Required arguments :team_id missing' if [:team_id].nil? if block_given? Pagination::Cursor.new(self, :admin_teams_admins_list, ).each do |page| yield page end else post('admin.teams.admins.list', ) end end |