Module: Slack::Endpoint::Auth

Included in:
Slack::Endpoint
Defined in:
lib/slack/endpoint/auth.rb

Instance Method Summary collapse

Instance Method Details

#auth_revoke(options = {}) ⇒ Object

Revokes a token.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :test (Object)

    Setting this parameter to 1 triggers a testing mode where the specified token will not actually be revoked.

See Also:



14
15
16
# File 'lib/slack/endpoint/auth.rb', line 14

def auth_revoke(options={})
  post("auth.revoke", options)
end

#auth_test(options = {}) ⇒ Object

Checks authentication & identity.



24
25
26
# File 'lib/slack/endpoint/auth.rb', line 24

def auth_test(options={})
  post("auth.test", options)
end