Method: Slack::Endpoint::Oauth#oauth_token
- Defined in:
- lib/slack/endpoint/oauth.rb
#oauth_token(options = {}) ⇒ Object
Exchanges a temporary OAuth verifier code for a workspace token.
43 44 45 46 47 48 |
# File 'lib/slack/endpoint/oauth.rb', line 43 def oauth_token(={}) throw ArgumentError.new("Required arguments :client_id missing") if [:client_id].nil? throw ArgumentError.new("Required arguments :client_secret missing") if [:client_secret].nil? throw ArgumentError.new("Required arguments :code missing") if [:code].nil? post("oauth.token", ) end |