Sha256: 17c9fc60b0dfdc3405e396e9dcd583b436a4c9528abcc9f2f4f243190f807535

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 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 AdminTeamsOwners
          #
          # List all of the owners on a given workspace.
          #
          # @option options [Object] :team_id
          #   .
          # @option options [string] :cursor
          #   Set cursor to next_cursor returned by the previous call to list items in the next page.
          # @option options [integer] :limit
          #   The maximum number of items to return. Must be between 1 - 1000 both inclusive.
          # @see https://api.slack.com/methods/admin.teams.owners.list
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.owners/admin.teams.owners.list.json
          def admin_teams_owners_list(options = {})
            throw ArgumentError.new('Required arguments :team_id missing') if options[:team_id].nil?
            if block_given?
              Pagination::Cursor.new(self, :admin_teams_owners_list, options).each do |page|
                yield page
              end
            else
              post('admin.teams.owners.list', options)
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-1.1.0 lib/slack/web/api/endpoints/admin_teams_owners.rb
slack-ruby-client-1.0.0 lib/slack/web/api/endpoints/admin_teams_owners.rb