8
9
10
11
12
13
14
|
# File 'lib/insta_readability/auth.rb', line 8
def self.get_access_token
uname = highline.ask ("Username: ")
passwd = highline.ask ("Password: ") {|q| q.echo = false}
consumer = ::OAuth::Consumer.new(Readit::Config.consumer_key, Readit::Config.consumer_secret, :site=>"https://www.readability.com/", :access_token_path => "/api/rest/v1/oauth/access_token/")
consumer.get_access_token(nil, {}, {:x_auth_mode => 'client_auth', :x_auth_username => uname, :x_auth_password => passwd})
end
|