Sha256: d56caa53541a3d82f7a1b319ea4bbc30aaa3537e05812389dfb397f5c0b3cc3b

Contents?: true

Size: 417 Bytes

Versions: 17

Compression:

Stored size: 417 Bytes

Contents

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

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

puts 'FAVORITES'
twitter.favorites.each { |f| puts f.text }
puts
puts

puts 'CREATE'
puts twitter.create_favorite(865416114).text
puts
puts

puts 'DESTROY'
puts twitter.destroy_favorite(865416114).text
puts
puts

Version data entries

17 entries across 17 versions & 7 rubygems

Version Path
anthonycrumley-twitter-0.3.8 examples/favorites.rb
billymeltdown-twitter-0.3.8.1 examples/favorites.rb
dschn-twitter-0.3.7.1 examples/favorites.rb
dschn-twitter-0.3.7.2 examples/favorites.rb
dustin-twitter-0.3.2.1 examples/favorites.rb
dustin-twitter-0.3.2.2 examples/favorites.rb
dustin-twitter-0.3.7 examples/favorites.rb
handcrafted-twitter-0.4.0 examples/favorites.rb
jnunemaker-twitter-0.2.8 examples/favorites.rb
jnunemaker-twitter-0.3.1 examples/favorites.rb
jnunemaker-twitter-0.3.4 examples/favorites.rb
jnunemaker-twitter-0.3.5 examples/favorites.rb
jnunemaker-twitter-0.3.6 examples/favorites.rb
jnunemaker-twitter-0.3.7 examples/favorites.rb
jnunemaker-twitter-0.3.8 examples/favorites.rb
pjdavis-twitter-0.3.8 examples/favorites.rb
pjdavis-twitter-0.3.9 examples/favorites.rb