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
Search Repo:
name age message
folder .gitignore Wed Apr 02 20:16:48 -0700 2008 made it so that command line interface can acce... [jnunemaker]
folder CHANGELOG Wed Apr 02 20:32:00 -0700 2008 found a better way to do stdin, no longer requi... [jnunemaker]
folder History.txt Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
folder License.txt Wed Apr 02 20:23:07 -0700 2008 removed extra license and updated the original [jnunemaker]
folder Manifest.txt Wed Apr 02 20:24:14 -0700 2008 removed MIT-LICENSE from manifest [jnunemaker]
folder README.txt Mon Mar 12 17:56:52 -0700 2007 added release 0.0.5; cleaned up some code and s... [jnunemaker]
folder Rakefile Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
folder bin/ Wed Apr 02 20:32:00 -0700 2008 found a better way to do stdin, no longer requi... [jnunemaker]
folder config/ Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
folder examples/ Sun May 04 15:50:14 -0700 2008 added some base specs for new and timeline [jnunemaker]
folder lib/ Sun May 04 15:50:14 -0700 2008 added some base specs for new and timeline [jnunemaker]
folder log/ Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
folder script/ Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
folder setup.rb Thu Dec 14 17:32:12 -0800 2006 initial import of all my public projects [jnunemaker]
folder spec/ Sun May 04 17:39:45 -0700 2008 slimmed down xml fixtures so specs run faster, ... [jnunemaker]
folder 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