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

Instance Method Details

#admin_apps_approve(options = {}) ⇒ Object

Approve an app for installation on a workspace.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :app_id (Object)

    The id of the app to approve.

  • :request_id (Object)

    The id of the request to approve.

  • :team_id (Object)

    .

See Also:



20
21
22
# File 'lib/slack/web/api/endpoints/admin_apps.rb', line 20

def admin_apps_approve(options = {})
  post('admin.apps.approve', options)
end

#admin_apps_restrict(options = {}) ⇒ Object

Restrict an app for installation on a workspace.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :app_id (Object)

    The id of the app to restrict.

  • :request_id (Object)

    The id of the request to restrict.

  • :team_id (Object)

    .

See Also:



35
36
37
# File 'lib/slack/web/api/endpoints/admin_apps.rb', line 35

def admin_apps_restrict(options = {})
  post('admin.apps.restrict', options)
end