Module: Slack::Web::Api::Endpoints::Oauth

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/oauth.rb

Instance Method Summary collapse

Instance Method Details

#oauth_access(options = {}) ⇒ Object

Exchanges a temporary OAuth verifier code for an access token.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :client_id (string)

    Issued when you created your application.

  • :client_secret (string)

    Issued when you created your application.

  • :code (string)

    The code param returned via the OAuth callback.

  • :redirect_uri (string)

    This must match the originally submitted URI (if one was sent).

  • :single_channel (boolean)

    Request the user to add your app only to a single channel. Only valid with a legacy workspace app.

See Also:



24
25
26
# File 'lib/slack/web/api/endpoints/oauth.rb', line 24

def oauth_access(options = {})
  post('oauth.access', options)
end