Sha256: a36d0c337ad1d0d1ed05d2586f9bad84f1f5e3967110604c94be966c06b0c19a

Contents?: true

Size: 1.38 KB

Versions: 3

Compression:

Stored size: 1.38 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 AdminAppsApproved
          #
          # List approved apps for an org or workspace.
          #
          # @option options [boolean] :certified
          #   Limit the results to only include certified apps. When false, no certified apps will appear in the result.
          # @option options [string] :cursor
          #   Set cursor to next_cursor returned by the previous call to list items in the next page.
          # @option options [Object] :enterprise_id
          #   .
          # @option options [integer] :limit
          #   The maximum number of items to return. Must be between 1 - 1000 both inclusive.
          # @option options [Object] :team_id
          #   .
          # @see https://api.slack.com/methods/admin.apps.approved.list
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.approved/admin.apps.approved.list.json
          def admin_apps_approved_list(options = {})
            if block_given?
              Pagination::Cursor.new(self, :admin_apps_approved_list, options).each do |page|
                yield page
              end
            else
              post('admin.apps.approved.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/admin_apps_approved.rb
slack-ruby-client-2.3.0 lib/slack/web/api/endpoints/admin_apps_approved.rb
slack-ruby-client-2.2.0 lib/slack/web/api/endpoints/admin_apps_approved.rb