Module: Slack::Web::Api::Endpoints::AppsEventAuthorizations

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/apps_event_authorizations.rb

Instance Method Summary collapse

Instance Method Details

#apps_event_authorizations_list(options = {}) ⇒ Object

Get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :event_context (string)

    .

  • :cursor (string)

    .

  • :limit (integer)

    .

Raises:

  • (ArgumentError)

See Also:



20
21
22
23
24
25
26
27
28
29
# File 'lib/slack/web/api/endpoints/apps_event_authorizations.rb', line 20

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