Sha256: c865e763fa5786692e1b0817d0257650c235c0864926a6096e2b0daba4226e03
Contents?: true
Size: 895 Bytes
Versions: 3
Compression:
Stored size: 895 Bytes
Contents
# frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake desc 'Oauth methods.' command 'oauth' 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 '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.flag 'single_channel', desc: 'Request the user to add your app only to a single channel. Only valid with a legacy workspace app.' c.action do |_global_options, options, _args| puts JSON.dump($client.oauth_access(options)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-2.0.0 | bin/commands/oauth.rb |
slack-ruby-client-1.1.0 | bin/commands/oauth.rb |
slack-ruby-client-1.0.0 | bin/commands/oauth.rb |