class Twurl::AppOnlyTokenInformationController
Constants
- NO_ISSUED_TOKENS_MESSAGE
Public Instance Methods
dispatch()
click to toggle source
# File lib/twurl/app_only_token_information_controller.rb 5 def dispatch 6 rcfile = OAuthClient.rcfile 7 if rcfile.empty? || rcfile.bearer_tokens.nil? 8 CLI.puts NO_ISSUED_TOKENS_MESSAGE 9 else 10 tokens = rcfile.bearer_tokens 11 CLI.puts "[consumer_key: bearer_token]" 12 tokens.each_key do |consumer_key| 13 CLI.puts "#{consumer_key}: (omitted)" 14 end 15 end 16 end