Permalink
Browse files

INFORMATION

  • Loading branch information...
1 parent 3a6c61c commit 4c4c3eee9b1187c120cd17f8cb0eacf5ab7ee76a @sorah sorah committed May 11, 2010
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/termtter/api.rb
View
@@ -54,6 +54,15 @@ def setup
end
def authorize_by_oauth(show_information=false, save_to_token_file=true, verbose=true)
+ if show_information
+ puts ' <on_blue>INFORMATION</on_blue>'.termcolor
+ puts <<-EOI
+ Twitter called "We'll shutdown BASIC authorize method".
+ So authorize method of termtter is switchover from BASIC to OAuth.
+ This wizard gets OAuth access token and secret.
+
+ EOI
+ end
puts '1. Contacting to twitter...' if verbose
consumer = OAuth::Consumer.new(
@@ -72,7 +81,6 @@ def authorize_by_oauth(show_information=false, save_to_token_file=true, verbose=
ui = create_highline
pin = ui.ask('3. Enter PIN: ')
- puts ""
puts "4. Getting access_token..."
access_token = request_token.get_access_token(:oauth_verifier => pin)

0 comments on commit 4c4c3ee

Please sign in to comment.