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
ubermajestix-twitter-0.4.2 examples/sent_messages.rb