lib/twitter_ebooks/archive.rb in twitter_ebooks-2.2.8 vs lib/twitter_ebooks/archive.rb in twitter_ebooks-2.2.9
- old
+ new
@@ -29,15 +29,17 @@
File.open(CONFIG_PATH, 'w') do |f|
f.write(JSON.pretty_generate(@config))
end
end
- Twitter::REST::Client.new do |config|
+ Twitter.configure do |config|
config.consumer_key = @config[:consumer_key]
config.consumer_secret = @config[:consumer_secret]
- config.access_token = @config[:oauth_token]
- config.access_token_secret = @config[:oauth_token_secret]
+ config.oauth_token = @config[:oauth_token]
+ config.oauth_token_secret = @config[:oauth_token_secret]
end
+
+ Twitter::Client.new
end
def initialize(username, path, client=nil)
@username = username
@path = path || "#{username}.json"