Sha256: 56351cc4efd32d1ed71688f7c6feaca50e3bb1bfd48dc1ca7d14a169489b134b

Contents?: true

Size: 541 Bytes

Versions: 21

Compression:

Stored size: 541 Bytes

Contents

require 'rubygems'
require 'activesupport'
require File.join(File.dirname(__FILE__), '..', 'lib', 'twitter')
config = YAML::load(open(ENV['HOME'] + '/.twitter'))

twitter = Twitter::Base.new(config['email'], config['password'])

puts 'SINCE'
twitter.sent_messages(:since => Time.now - 5.day).each do |s|
  puts "- #{s.text}"
end
puts
puts

puts 'SINCE_ID'
twitter.sent_messages(:since_id => 33505386).each do |s|
  puts "- #{s.text}"
end
puts
puts

puts 'PAGE'
twitter.sent_messages(:page => 1).each do |s|
  puts "- #{s.text}"
end
puts
puts

Version data entries

21 entries across 21 versions & 13 rubygems

Version Path
baron-twitter-0.4.2 examples/sent_messages.rb
billymeltdown-twitter-0.4.2 examples/sent_messages.rb
billymeltdown-twitter-0.4.3 examples/sent_messages.rb
drnic-twitter-0.4.4.1 examples/sent_messages.rb
dschn-twitter-0.4.1.1 examples/sent_messages.rb
dschn-twitter-0.4.1.2 examples/sent_messages.rb
dschn-twitter-0.4.1.3 examples/sent_messages.rb
dschn-twitter-0.4.1 examples/sent_messages.rb
gilesbowkett-gilesbowkett-twitter-0.4.4 examples/sent_messages.rb
gilesbowkett-twitter-0.4.3 examples/sent_messages.rb
gilesbowkett-twitter-0.4.5 examples/sent_messages.rb
handcrafted-twitter-0.4.2 examples/sent_messages.rb
jnunemaker-twitter-0.4.0 examples/sent_messages.rb
jnunemaker-twitter-0.4.1 examples/sent_messages.rb
jnunemaker-twitter-0.4.2 examples/sent_messages.rb
jnunemaker-twitter-0.4.4 examples/sent_messages.rb
lazyatom-twitter-0.4.2.1 examples/sent_messages.rb
netshade-twitter-0.4.2.1 examples/sent_messages.rb
neufelry-twitter-0.4.2 examples/sent_messages.rb
pjdavis-twitter-0.4.2 examples/sent_messages.rb