examples/twitter.rb in titi-0.0.5 vs examples/twitter.rb in titi-0.0.6
- old
+ new
@@ -1,18 +1,10 @@
#!/usr/bin/env ruby
require 'rubygems'
-require 'restclient'
-require 'json'
-require 'active_support'
-
TITI_DIR = File.dirname(File.expand_path(__FILE__+'/..')) unless defined?(TITI_DIR)
$: << TITI_DIR+'/lib' unless $:.include?(TITI_DIR+'/lib')
-
-require 'titi'
+require 'titi' ; include Titi::Provider
require 'titi/provider/twitter'
-include Titi::Provider
-tweet = Twitter::Status.get(12233609555)
-entry = tweet.to_activity_stream_entry
-
-p tweet.to_hash
-puts entry.to_xml
+tweet = Twitter::Status.fetch_status(12233609555)
+tw_feed = tweet.to_activity_stream
+puts tw_feed.to_xml