module Slack::Web::Api::Endpoints::AdminApps
Public Instance Methods
Approve an app for installation on a workspace.
@option options [Object] :app_id
The id of the app to approve.
@option options [Object] :enterprise_id
The ID of the enterprise to approve the app on.
@option options [Object] :request_id
The id of the request to approve.
@option options [Object] :team_id
The ID of the workspace to approve the app on.
@see api.slack.com/methods/admin.apps.approve @see github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps/admin.apps.approve.json
# File lib/slack/web/api/endpoints/admin_apps.rb, line 22 def admin_apps_approve(options = {}) post('admin.apps.approve', options) end
Clear an app resolution
@option options [Object] :app_id
The id of the app whose resolution you want to clear/undo.
@option options [Object] :enterprise_id
The enterprise to clear the app resolution from.
@option options [Object] :team_id
The workspace to clear the app resolution from.
@see api.slack.com/methods/admin.apps.clearResolution @see github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps/admin.apps.clearResolution.json
# File lib/slack/web/api/endpoints/admin_apps.rb, line 37 def admin_apps_clearResolution(options = {}) throw ArgumentError.new('Required arguments :app_id missing') if options[:app_id].nil? post('admin.apps.clearResolution', options) end
Restrict an app for installation on a workspace.
@option options [Object] :app_id
The id of the app to restrict.
@option options [Object] :enterprise_id
The ID of the enterprise to approve the app on.
@option options [Object] :request_id
The id of the request to restrict.
@option options [Object] :team_id
The ID of the workspace to approve the app on.
@see api.slack.com/methods/admin.apps.restrict @see github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.apps/admin.apps.restrict.json
# File lib/slack/web/api/endpoints/admin_apps.rb, line 55 def admin_apps_restrict(options = {}) post('admin.apps.restrict', options) end