Sha256: 93ec319facc6d657bbc5d12f1b9bafb9256cde717e2d11598a151952baec496c

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 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 AuthTeams
          #
          # Obtain a full list of workspaces your org-wide app has been approved for.
          #
          # @option options [string] :cursor
          #   Set cursor to next_cursor returned by the previous call to list items in the next page.
          # @option options [boolean] :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 [integer] :limit
          #   The maximum number of workspaces to return. Must be a positive integer no larger than 1000.
          # @see https://api.slack.com/methods/auth.teams.list
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/auth.teams/auth.teams.list.json
          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
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 lib/slack/web/api/endpoints/auth_teams.rb
slack-ruby-client-2.3.0 lib/slack/web/api/endpoints/auth_teams.rb
slack-ruby-client-2.2.0 lib/slack/web/api/endpoints/auth_teams.rb