lib/slack/web/api/endpoints/admin_apps_config.rb
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake
module Slack
module Web
module Api
module Endpoints
module AdminAppsConfig
#
# Look up the app config for connectors by their IDs
#
# @option options [array] :app_ids
# An array of app IDs to get app configs for.
# @see https://api.slack.com/methods/admin.apps.config.lookup
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.config/admin.apps.config.lookup.json
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
#
# Set the app config for a connector
#
# @option options [Object] :app_id
# The encoded app ID to set the app config for.
# @option options [object] :domain_restrictions
# 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.
# @option options [enum] :workflow_auth_strategy
# The workflow auth permission. Can be one of builder_choice or end_user_only.
# @see https://api.slack.com/methods/admin.apps.config.set
# @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps.config/admin.apps.config.set.json
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
end
end
end
end
end