module Slack::Web::Api::Endpoints::AuthTeams

Public Instance Methods

auth_teams_list(options = {}) { |page| ... } click to toggle source

List the workspaces a token can access.

@option options [Object] :cursor

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

@option options [Object] :include_icon

Whether to return icon paths for each workspace. An icon path represents a URI pointing to the image signifying the workspace.

@option options [Object] :limit

The maximum number of workspaces to return. Must be a positive integer no larger than 1000.

@see api.slack.com/methods/auth.teams.list @see github.com/slack-ruby/slack-api-ref/blob/master/methods/auth.teams/auth.teams.list.json

# File lib/slack/web/api/endpoints/auth_teams.rb, line 20
def auth_teams_list(options = {})
  if block_given?
    Pagination::Cursor.new(self, :auth_teams_list, options).each do |page|
      yield page
    end
  else
    post('auth.teams.list', options)
  end
end