examples/direct_messages.rb in dustin-twitter-0.3.2.2 vs examples/direct_messages.rb in dustin-twitter-0.3.7

- old
+ new

@@ -4,23 +4,25 @@ twitter = Twitter::Base.new(config['email'], config['password']) puts 'SINCE' twitter.direct_messages(:since => Time.now - 5.day).each do |s| - puts "- #{s.text}" + puts "- #{s.id} #{s.text}" end puts puts -puts 'SINCE_ID' -twitter.direct_messages(:since_id => 33505386).each do |s| - puts "- #{s.text}" -end -puts -puts +# puts 'SINCE_ID' +# twitter.direct_messages(:since_id => 33505386).each do |s| +# puts "- #{s.text}" +# end +# puts +# puts +# +# puts 'PAGE' +# twitter.direct_messages(:page => 1).each do |s| +# puts "- #{s.text}" +# end +# puts +# puts -puts 'PAGE' -twitter.direct_messages(:page => 1).each do |s| - puts "- #{s.text}" -end -puts -puts +# puts twitter.destroy_direct_message(34489057).inspect \ No newline at end of file