module Slack::Web::Api::Endpoints::OauthV2

def oauth_v2_access(options = {})

Other tags:
    See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/oauth.v2/oauth.v2.access.json -
    See: https://api.slack.com/methods/oauth.v2.access -

Options Hash: (**options)
  • :refresh_token (string) --
  • :redirect_uri (string) --
  • :grant_type (string) --
  • :code (string) --
  • :client_secret (string) --
  • :client_id (string) --
def oauth_v2_access(options = {})
  post('oauth.v2.access', options)
end

def oauth_v2_exchange(options = {})

Other tags:
    See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/oauth.v2/oauth.v2.exchange.json -
    See: https://api.slack.com/methods/oauth.v2.exchange -

Options Hash: (**options)
  • :client_secret (string) --
  • :client_id (string) --
def oauth_v2_exchange(options = {})
  raise ArgumentError, 'Required arguments :client_id missing' if options[:client_id].nil?
  raise ArgumentError, 'Required arguments :client_secret missing' if options[:client_secret].nil?
  post('oauth.v2.exchange', options)
end