module Slack::Web::Api::Endpoints::AdminTeamsOwners
Public Instance Methods
admin_teams_owners_list(options = {}) { |page| ... }
click to toggle source
List all of the owners 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. Must be between 1 - 1000 both inclusive.
@see api.slack.com/methods/admin.teams.owners.list @see github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.teams.owners/admin.teams.owners.list.json
# File lib/slack/web/api/endpoints/admin_teams_owners.rb, line 20 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