public
Rubygem
Description: command line tweets and an api wrapper for twitter
Homepage: http://twitter.rubyforge.org/
Clone URL: git://github.com/jnunemaker/twitter.git
Search Repo:
Click here to lend your support to: twitter and make a donation at www.pledgie.com !
name age message
folder .gitignore Wed Jul 23 19:57:07 -0700 2008 Added terminal image to website. [jnunemaker]
folder History.txt Wed Jul 23 19:44:09 -0700 2008 Added sweet new formatting of CLI tweet output.... [jnunemaker]
folder License.txt Wed Apr 02 20:23:07 -0700 2008 removed extra license and updated the original [jnunemaker]
folder Manifest.txt Wed Jul 23 19:44:09 -0700 2008 Added sweet new formatting of CLI tweet output.... [jnunemaker]
folder README.txt Tue Jul 22 17:24:11 -0700 2008 added website and updated readme. [jnunemaker]
folder Rakefile Tue Jul 22 19:33:27 -0700 2008 Added several new methods such as #friendship_e... [jnunemaker]
folder TODO.txt Wed Jul 23 20:18:07 -0700 2008 updated todos [jnunemaker]
folder bin/ Tue Jul 22 15:16:56 -0700 2008 Added #d command line functionality. Also, d no... [jnunemaker]
folder config/ Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
folder examples/ Tue Jul 22 20:27:30 -0700 2008 Added replies to CLI. Only checking timelines a... [jnunemaker]
folder lib/ Wed Jul 23 19:44:09 -0700 2008 Added sweet new formatting of CLI tweet output.... [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/ Wed Jul 23 19:44:09 -0700 2008 Added sweet new formatting of CLI tweet output.... [jnunemaker]
folder tasks/ Wed Mar 12 20:31:08 -0700 2008 updated to latest version of newgem [jnunemaker]
folder twitter.gemspec Wed Jul 23 19:44:09 -0700 2008 Added sweet new formatting of CLI tweet output.... [jnunemaker]
folder website/ Wed Jul 23 20:01:38 -0700 2008 tweaked tagline [jnunemaker]
README.txt
= addicted to twitter

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

== Install

sudo gem install twitter will work just fine. For command line use, you'll need a few other gems: sudo gem install main 
highline activerecord sqlite3-ruby

== 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

== Command Line Use
  
  $ twitter

Will give you a list of all the commands. You can get the help for each command by running twitter [command] -h. 

The first thing you'll want to do is install the database so your account(s) can be stored. 

  $ twitter install
  
You can always uninstall twitter like this:

  $ twitter uninstall
  
Once the twitter database is installed and migrated, you can add accounts like this:

  $ twitter add
  Add New Account:
  Username: jnunemaker
  Password (won't be displayed): 
  Account added.

You can also list all the accounts you've added.

  $ twitter list
  Account List
  * jnunemaker
    snitch_test

The * means denotes the account that will be used when posting, befriending, defriending, following, leaving or viewing 
a timeline.

To post using the account marked with the *, simply type the following:

  $ twitter post "releasing my new twitter gem"

That is about it. You can do pretty much anything that you can do with twitter from the command line interface.