Module: Slack::Endpoint::Auth

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

Instance Method Summary collapse

Instance Method Details

#auth_test(options = {}) ⇒ Object

This method checks authentication and tells you who you are.



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

def auth_test(options={})
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
  post("auth.test", options)
end