public
Fork of jnunemaker/twitter
Description: command line twits and an api wrapper for twitter
Homepage: http://twitter.rubyforge.org/
Clone URL: git://github.com/drnic/twitter.git
commit  92bcf9f42a82eac35d7b889a6e18b910db7be5cb
tree    27149430e8bd670111a1d93a15429811ba7100c6
parent  560883c00c8bd4a2d11f1282b26d73ccf9fda152 parent  2ef6c3e7280b64d5d4a956ca245e631b126001b0
name age message
file .gitignore Wed Apr 02 20:16:48 -0700 2008 made it so that command line interface can acce... [jnunemaker]
file CHANGELOG Wed Apr 02 20:32:00 -0700 2008 found a better way to do stdin, no longer requi... [jnunemaker]
file History.txt Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
file License.txt Wed Apr 02 20:23:07 -0700 2008 removed extra license and updated the original [jnunemaker]
file Manifest.txt Wed Apr 02 20:24:14 -0700 2008 removed MIT-LICENSE from manifest [jnunemaker]
file README.txt Mon Mar 12 17:56:52 -0700 2007 added release 0.0.5; cleaned up some code and s... [jnunemaker]
file Rakefile Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
directory bin/ Wed Apr 02 20:32:00 -0700 2008 found a better way to do stdin, no longer requi... [jnunemaker]
directory config/ Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
directory examples/ Sun May 04 15:50:14 -0700 2008 added some base specs for new and timeline [jnunemaker]
directory lib/ Sun May 04 15:50:14 -0700 2008 added some base specs for new and timeline [jnunemaker]
directory log/ Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
directory script/ Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
file setup.rb Thu Dec 14 17:32:12 -0800 2006 initial import of all my public projects [jnunemaker]
directory spec/ Sun May 04 16:08:20 -0700 2008 added direct message spec [jnunemaker]
directory tasks/ Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
README.txt
= addicted to twitter

... a sweet little diddy that helps you twitter your life away

== Command Line Use

  $ twitter

That will show the commands and each command will either run or show you the options it needs to run

  $ twitter post "releasing my new twitter gem"

That will post a status update to your twitter

== Examples

  Twitter::Base.new('your email', 'your password').update('watching veronica mars')

  # or you can use post
  Twitter::Base.new('your email', 'your password').post('post works too')

  puts "Public Timeline", "=" * 50
  Twitter::Base.new('your email', 'your password').timeline(:public).each do |s|
    puts s.text, s.user.name
    puts
  end

  puts '', "Friends Timeline", "=" * 50
  Twitter::Base.new('your email', 'your password').timeline.each do |s|
    puts s.text, s.user.name
    puts
  end

  puts '', "Friends", "=" * 50
  Twitter::Base.new('your email', 'your password').friends.each do |u|
    puts u.name, u.status.text
    puts
  end

  puts '', "Followers", "=" * 50
  Twitter::Base.new('your email', 'your password').followers.each do |u|
    puts u.name, u.status.text
    puts
  end