Sha256: c624c1437b0566a276b40f5d415ea32b2d59ebe4d94a37112120fe268c04ae92

Contents?: true

Size: 767 Bytes

Versions: 6

Compression:

Stored size: 767 Bytes

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

desc 'OauthV2 methods.'
command 'oauth_v2' do |g|
  g.desc 'Exchanges a temporary OAuth verifier code for an access token.'
  g.long_desc %( Exchanges a temporary OAuth verifier code for an access token. )
  g.command 'access' do |c|
    c.flag 'code', desc: 'The code param returned via the OAuth callback.'
    c.flag 'client_id', desc: 'Issued when you created your application.'
    c.flag 'client_secret', desc: 'Issued when you created your application.'
    c.flag 'redirect_uri', desc: 'This must match the originally submitted URI (if one was sent).'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.oauth_v2_access(options))
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slack-ruby-client-0.17.0 bin/commands/oauth_v2.rb
slack-ruby-client-0.16.0 bin/commands/oauth_v2.rb
slack-ruby-client-0.15.1 bin/commands/oauth_v2.rb
slack-ruby-client-0.15.0 bin/commands/oauth_v2.rb
slack-ruby-client-0.14.6 bin/commands/oauth_v2.rb
slack-ruby-client-0.14.5 bin/commands/oauth_v2.rb