public
Rubygem
Fork of jnunemaker/twitter
Description: command line twits and an api wrapper for twitter
Homepage: http://twitter.rubyforge.org/
Clone URL: git://github.com/technoweenie/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:31:17 -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 Sun Apr 27 13:09:12 -0700 2008 add twitter gemspec [rick]
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 Sun Apr 27 10:38:24 -0700 2008 setup tests to actually run, looking in ENV['HO... [rick]
folder bin/ Wed Apr 02 20:31:17 -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/ Sat Mar 31 13:28:48 -0700 2007 added some tests; removed relative_created_at a... [jnunemaker]
folder lib/ Sun Apr 27 12:59:29 -0700 2008 change method signature of Twitter::Base#friend... [rick]
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 tasks/ Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
folder test/ Sun Apr 27 12:59:29 -0700 2008 change method signature of Twitter::Base#friend... [rick]
folder twitter.gemspec Sun Apr 27 13:09:12 -0700 2008 add twitter gemspec [rick]
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