Module: Slack::Web::Auth

Included in:
Slack::Web
Defined in:
lib/slack/web/auth.rb

Overview

Module for the auth methods.

Constant Summary collapse

SCOPE =

Endpoint scope

"auth"

Instance Method Summary collapse

Instance Method Details

#auth_test(params = {}) ⇒ Object

Checks authentication & identity.

Parameters:

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

    API call arguments

See Also:



17
18
19
20
# File 'lib/slack/web/auth.rb', line 17

def auth_test(params={})
  response = @session.do_get "#{SCOPE}.test", params
  Slack::parse_response(response)
end