Sha256: c7e6dbaaa3084f64c8f75119b1fa2c0eed5fceb484cf10d4662d74ae6b4948b5

Contents?: true

Size: 417 Bytes

Versions: 21

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 'CREATE'
puts twitter.create_favorite(865416114).text
puts
puts

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

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

Version data entries

21 entries across 21 versions & 13 rubygems

Version Path
ubermajestix-twitter-0.4.2 examples/favorites.rb