Sha256: e7d3e4c2d886d96eecb3d79b6106d2bc7867bc6daeb89a861f019c9ae57ffa1b
Contents?: true
Size: 1.51 KB
Versions: 1
Compression:
Stored size: 1.51 KB
Contents
# frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake module Slack module Web module Api module Endpoints module Oauth # # Exchanges a temporary OAuth verifier code for an access token. # # @option options [string] :client_id # Issued when you created your application. If possible, avoid sending client_id and client_secret as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme. # @option options [string] :client_secret # Issued when you created your application. If possible, avoid sending client_id and client_secret as parameters in your request and instead supply the Client ID and Client Secret using the HTTP Basic authentication scheme. # @option options [string] :code # The code param returned via the OAuth callback. # @option options [string] :redirect_uri # This must match the originally submitted URI (if one was sent). # @option options [boolean] :single_channel # Request the user to add your app only to a single channel. Only valid with a legacy workspace app. # @see https://api.slack.com/methods/oauth.access # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/oauth/oauth.access.json def oauth_access(options = {}) post('oauth.access', options) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-2.4.0 | lib/slack/web/api/endpoints/oauth.rb |