Sha256: d25b77d8bcb375790dece3e1a29ce145ccd8c82f5ac17439e74cc83ffc07fe3b

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Web
    module Api
      module Endpoints
        module AdminTeamsAdmins
          #
          # List all of the admins on a given workspace.
          #
          # @option options [Object] :team_id
          #   .
          # @option options [Object] :cursor
          #   Set cursor to next_cursor returned by the previous call to list items in the next page.
          # @option options [Object] :limit
          #   The maximum number of items to return.
          # @see https://api.slack.com/methods/admin.teams.admins.list
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.admins/admin.teams.admins.list.json
          def admin_teams_admins_list(options = {})
            throw ArgumentError.new('Required arguments :team_id missing') if options[:team_id].nil?
            if block_given?
              Pagination::Cursor.new(self, :admin_teams_admins_list, options).each do |page|
                yield page
              end
            else
              post('admin.teams.admins.list', options)
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slack-ruby-client-0.17.0 lib/slack/web/api/endpoints/admin_teams_admins.rb
slack-ruby-client-0.16.0 lib/slack/web/api/endpoints/admin_teams_admins.rb
slack-ruby-client-0.15.1 lib/slack/web/api/endpoints/admin_teams_admins.rb
slack-ruby-client-0.15.0 lib/slack/web/api/endpoints/admin_teams_admins.rb
slack-ruby-client-0.14.6 lib/slack/web/api/endpoints/admin_teams_admins.rb