Module: Slack::Web::Api::Endpoints::AdminAppsConfig

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

Instance Method Summary collapse

Instance Method Details

#admin_apps_config_lookup(options = {}) ⇒ Object

Look up the app config for connectors by their IDs

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :app_ids (array)

    An array of app IDs to get app configs for.

Raises:

  • (ArgumentError)

See Also:



16
17
18
19
# File 'lib/slack/web/api/endpoints/admin_apps_config.rb', line 16

def admin_apps_config_lookup(options = {})
  raise ArgumentError, 'Required arguments :app_ids missing' if options[:app_ids].nil?
  post('admin.apps.config.lookup', options)
end

#admin_apps_config_set(options = {}) ⇒ Object

Set the app config for a connector

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :app_id (Object)

    The encoded app ID to set the app config for.

  • :domain_restrictions (object)

    Domain restrictions for the app. Should be an object with two properties: urls and emails. Each is an array of strings, and each sets the allowed URLs and emails for connector authorization, respectively.

  • :workflow_auth_strategy (enum)

    The workflow auth permission. Can be one of builder_choice or end_user_only.

Raises:

  • (ArgumentError)

See Also:



32
33
34
35
# File 'lib/slack/web/api/endpoints/admin_apps_config.rb', line 32

def admin_apps_config_set(options = {})
  raise ArgumentError, 'Required arguments :app_id missing' if options[:app_id].nil?
  post('admin.apps.config.set', options)
end