Class: SlackChatter::Api::Oauth

Inherits:
Base
  • Object
show all
Defined in:
lib/slack_chatter/api/oauth.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#bool_as_i, #call_method, #channel_id_or_name, #initialize

Constructor Details

This class inherits a constructor from SlackChatter::Api::Base

Instance Method Details

#access(client_id, client_secret, code, opts = {}) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/slack_chatter/api/oauth.rb', line 5

def access client_id, client_secret, code, opts={}
  opts.merge!({
    "client_id" => client_id,
    "client_secret" => client_secret,
    "code" => code})
  call_method("oauth", "access", opts)
end