Sha256: f9647f0026ae1fc9f1f00c4331be9f22fa9ebac3239cf4d07798d5cad1a95491
Contents?: true
Size: 520 Bytes
Versions: 7
Compression:
Stored size: 520 Bytes
Contents
module Twurl class AuthorizationController < AbstractCommandController AUTHORIZATION_FAILED_MESSAGE = "Authorization failed. Check that your consumer key and secret are correct, as well as username and password." AUTHORIZATION_SUCCEEDED_MESSAGE = "Authorization successful" def dispatch client.exchange_credentials_for_access_token client.save CLI.puts AUTHORIZATION_SUCCEEDED_MESSAGE rescue OAuth::Unauthorized raise Exception, AUTHORIZATION_FAILED_MESSAGE end end end
Version data entries
7 entries across 7 versions & 2 rubygems