Module: Slack::Web::Api::Endpoints::AdminApps
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/admin_apps.rb
Instance Method Summary collapse
-
#admin_apps_approve(options = {}) ⇒ Object
Approve an app for installation on a workspace.
-
#admin_apps_clearResolution(options = {}) ⇒ Object
Clear an app resolution.
-
#admin_apps_restrict(options = {}) ⇒ Object
Restrict an app for installation on a workspace.
-
#admin_apps_uninstall(options = {}) ⇒ Object
Uninstall an app from one or many workspaces, or an entire enterprise organization.
Instance Method Details
#admin_apps_approve(options = {}) ⇒ Object
Approve an app for installation on a workspace.
22 23 24 |
# File 'lib/slack/web/api/endpoints/admin_apps.rb', line 22 def admin_apps_approve( = {}) post('admin.apps.approve', ) end |
#admin_apps_clearResolution(options = {}) ⇒ Object
Clear an app resolution
37 38 39 40 |
# File 'lib/slack/web/api/endpoints/admin_apps.rb', line 37 def admin_apps_clearResolution( = {}) raise ArgumentError, 'Required arguments :app_id missing' if [:app_id].nil? post('admin.apps.clearResolution', ) end |
#admin_apps_restrict(options = {}) ⇒ Object
Restrict an app for installation on a workspace.
55 56 57 |
# File 'lib/slack/web/api/endpoints/admin_apps.rb', line 55 def admin_apps_restrict( = {}) post('admin.apps.restrict', ) end |
#admin_apps_uninstall(options = {}) ⇒ Object
Uninstall an app from one or many workspaces, or an entire enterprise organization.
70 71 72 73 |
# File 'lib/slack/web/api/endpoints/admin_apps.rb', line 70 def admin_apps_uninstall( = {}) raise ArgumentError, 'Required arguments :app_id missing' if [:app_id].nil? post('admin.apps.uninstall', ) end |