class Twurl::AuthorizationController

Constants

AUTHORIZATION_FAILED_MESSAGE
AUTHORIZATION_SUCCEEDED_MESSAGE

Public Instance Methods

dispatch() click to toggle source
   # File lib/twurl/authorization_controller.rb
 5 def dispatch
 6   client.exchange_credentials_for_access_token
 7   client.save
 8   CLI.puts AUTHORIZATION_SUCCEEDED_MESSAGE
 9 rescue OAuth::Unauthorized
10   raise Exception, AUTHORIZATION_FAILED_MESSAGE
11 end