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

This method uninstalls a workspace app. Unlike auth.revoke, which revokes a single token, this method revokes all tokens associated with a single installation of a workspace app.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :client_id (Object)

    Issued when you created your application.

  • :client_secret (Object)

    Issued when you created your application.

See Also:


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

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