Sha256: 3d8d0c52e6f3395cf55d26a18d8b073ee3b07f0bab7577a0921c0568802db970
Contents?: true
Size: 1.61 KB
Versions: 3
Compression:
Stored size: 1.61 KB
Contents
# frozen_string_literal: true # This file was auto-generated by lib/tasks/web.rake module Slack module Cli class App 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 '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 'grant_type', desc: 'The grant_type param as described in the OAuth spec.' c.flag 'redirect_uri', desc: 'This must match the originally submitted URI (if one was sent).' c.flag 'refresh_token', desc: 'The refresh_token param as described in the OAuth spec.' c.action do |_global_options, options, _args| puts JSON.dump(@client.oauth_v2_access(options)) end end g.desc 'Exchanges a legacy access token for a new expiring access token and refresh token' g.long_desc %( Exchanges a legacy access token for a new expiring access token and refresh token ) g.command 'exchange' 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.action do |_global_options, options, _args| puts JSON.dump(@client.oauth_v2_exchange(options)) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-2.3.0 | bin/commands/oauth_v2.rb |
slack-ruby-client-2.2.0 | bin/commands/oauth_v2.rb |
slack-ruby-client-2.1.0 | bin/commands/oauth_v2.rb |