Sha256: b6c19ec720feccc52070a4b2ba056bca536aa171877ff6be3c351e2a616d9bb7

Contents?: true

Size: 824 Bytes

Versions: 14

Compression:

Stored size: 824 Bytes

Contents

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

desc 'Oauth methods.'
command 'oauth' do |g|
  g.desc 'This method allows you to exchange a temporary OAuth code for an API access token.'
  g.long_desc %( This method allows you to exchange a temporary OAuth code for an API access token. This is used as part of the OAuth authentication flow. )
  g.command 'access' do |c|
    c.flag 'client_id', desc: 'Issued when you created your application.'
    c.flag 'client_secret', desc: 'Issued when you created your application.'
    c.flag 'code', desc: 'The code param returned via the OAuth callback.'
    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_access(options))
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
slack-ruby-client-0.9.0 bin/commands/oauth.rb
slack-ruby-client-0.8.1 bin/commands/oauth.rb
slack-ruby-client-0.8.0 bin/commands/oauth.rb
slack-ruby-client-0.7.9 bin/commands/oauth.rb
slack-ruby-client-0.7.8 bin/commands/oauth.rb
slack-ruby-client-0.7.7 bin/commands/oauth.rb
slack-ruby-client-0.7.6 bin/commands/oauth.rb
slack-ruby-client-0.7.5 bin/commands/oauth.rb
slack-ruby-client-0.7.4 bin/commands/oauth.rb
slack-ruby-client-0.7.3 bin/commands/oauth.rb
slack-ruby-client-0.7.2 bin/commands/oauth.rb
slack-ruby-client-0.7.1 bin/commands/oauth.rb
slack-ruby-client-0.7.0 bin/commands/oauth.rb
slack-ruby-client-0.6.0 bin/commands/oauth.rb