Sha256: 1d7e9f548be617b89e60e16aead71e022afd41ab547a82c47f4371aaba2a7b69

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 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 AppsEventAuthorizations
          #
          # Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to.
          #
          # @option options [string] :event_context
          #   .
          # @option options [string] :cursor
          #   .
          # @option options [integer] :limit
          #   .
          # @see https://api.slack.com/methods/apps.event.authorizations.list
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/apps.event.authorizations/apps.event.authorizations.list.json
          def apps_event_authorizations_list(options = {})
            raise ArgumentError, 'Required arguments :event_context missing' if options[:event_context].nil?
            if block_given?
              Pagination::Cursor.new(self, :apps_event_authorizations_list, options).each do |page|
                yield page
              end
            else
              post('apps.event.authorizations.list', options)
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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