Sha256: 261bf3bfe871b1ac572c8dbc941002c0c4cea9485a183c0f902ee5a174e3c117

Contents?: true

Size: 843 Bytes

Versions: 7

Compression:

Stored size: 843 Bytes

Contents

# This file was auto-generated by lib/slack/web/api/tasks/generate.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

7 entries across 7 versions & 2 rubygems

Version Path
slack-ruby-client-bhe-0.5.5 bin/commands/oauth.rb
slack-ruby-client-bhe-0.5.4 bin/commands/oauth.rb
slack-ruby-client-0.5.4 bin/commands/oauth.rb
slack-ruby-client-0.5.3 bin/commands/oauth.rb
slack-ruby-client-0.5.2 bin/commands/oauth.rb
slack-ruby-client-0.5.1 bin/commands/oauth.rb
slack-ruby-client-0.5.0 bin/commands/oauth.rb