#!/usr/bin/env ruby require "pathname" require "yaml" require "rubygems" require "oauth" require "json" # -> [access_token, access_secret] def authorize(consumer) request_token = consumer.get_request_token puts "Access following URL: %s" % request_token.authorize_url print 'and input OAuth verifier: ' oauth_verifier = STDIN.gets.chomp.strip access_token = request_token.get_access_token(:oauth_veri