Module: Slack::Web::Api::Endpoints::OauthV2
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/oauth_v2.rb
Instance Method Summary collapse
-
#oauth_v2_access(options = {}) ⇒ Object
Exchanges a temporary OAuth verifier code for an access token.
-
#oauth_v2_exchange(options = {}) ⇒ Object
Exchanges a legacy access token for a new expiring access token and refresh token.
Instance Method Details
#oauth_v2_access(options = {}) ⇒ Object
Exchanges a temporary OAuth verifier code for an access token.
26 27 28 |
# File 'lib/slack/web/api/endpoints/oauth_v2.rb', line 26 def oauth_v2_access( = {}) post('oauth.v2.access', ) end |
#oauth_v2_exchange(options = {}) ⇒ Object
Exchanges a legacy access token for a new expiring access token and refresh token
39 40 41 42 43 |
# File 'lib/slack/web/api/endpoints/oauth_v2.rb', line 39 def oauth_v2_exchange( = {}) raise ArgumentError, 'Required arguments :client_id missing' if [:client_id].nil? raise ArgumentError, 'Required arguments :client_secret missing' if [:client_secret].nil? post('oauth.v2.exchange', ) end |