Module: Slack::Web::Api::Endpoints::AdminTeamsOwners

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/admin_teams_owners.rb

Instance Method Summary collapse

Instance Method Details

#admin_teams_owners_list(options = {}) ⇒ Object

List all of the owners on a given workspace.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :team_id (Object)

    .

  • :cursor (string)

    Set cursor to next_cursor returned by the previous call to list items in the next page.

  • :limit (integer)

    The maximum number of items to return. Must be between 1 - 1000 both inclusive.

Raises:

  • (ArgumentError)

See Also:



20
21
22
23
24
25
26
27
28
29
# File 'lib/slack/web/api/endpoints/admin_teams_owners.rb', line 20

def admin_teams_owners_list(options = {})
  raise ArgumentError, '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