Module: Slack::Web::Api::Endpoints::Apps

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

Instance Method Summary collapse

Instance Method Details

#apps_uninstall(options = {}) ⇒ Object

Uninstalls your app from a workspace.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :client_id (string)

    Issued when you created your application.

  • :client_secret (string)

    Issued when you created your application.

Raises:

  • (ArgumentError)

See Also:



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

def apps_uninstall(options = {})
  raise ArgumentError, 'Required arguments :client_id missing' if options[:client_id].nil?
  raise ArgumentError, 'Required arguments :client_secret missing' if options[:client_secret].nil?
  post('apps.uninstall', options)
end