Class: Slack::API::OAuth
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Slack::API::Base
Instance Method Details
#access(client_id, client_secret, code, redirect_uri = nil) ⇒ Object
4 5 6 7 8 |
# File 'lib/laziness/api/oauth.rb', line 4 def access(client_id, client_secret, code, redirect_uri=nil) response = request :get, 'oauth.access', client_id: client_id, client_secret: client_secret, code: code, redirect_uri: redirect_uri Slack::Auth.parse response end |