twtr

Get Version

0.1.4

What

twtr is a twitter client for Linux, OSX and Windows Console.

Installing

sudo gem install twtr

The basics

$ twtr setting
>> /home/foo/.twtr/twtr.yml
Edit twtr config? [y/N]: [Enter y]
Twitter username: [Enter your Twitter id or email]
Twitter password: [Enter your Twitter password]
Proxy host (option): [Enter]
Proxy port (option): [Enter]
$ twtr ft -c 2
bob: Hi!
tom: I'm Home.
$ twtr -h 
- Show details of twtr commands. -

Demonstration of usage

command line

twtr [subcommand] [options]
ex)
  $ twtr setting              # => (Re)set config file.
  $ twtr ft                   # => Show friends timeline.
  $ twtr pt -P 2              # => Show public timeline (page 2).
  $ twtr ut -i bob            # => Show someone's timeline.
  $ twtr rp                   # => Show replies.
  $ twtr up -m "hello world"  # => Update message.
  $ twtr ul -l "Tokyo, Japan" # => Update location.
  $ twtr rls                  # => The remaining number of API requests.

ruby code

require "twtr"
tc = Twtr::Client.new(
			"account" => {"user" => "bob", "password" => "secret"},
			"proxy" => {"host" => "proxy.domain", "port" => 8080},
		 )

result_json = tc.update({:status => "hello world! from twtr", :format => :json})

result_xml = tc.friends_timeline({:page => 2, :format => :xml})

Repository

The trunk repository is svn://rubyforge.org/var/svn/twtr/trunk for anonymous access.

License

This code is free to use under the terms of the MIT license.

Ryota Maruko, 2nd July 2008
Theme extended from Paul Battley, by Daniel Cadenas via DepGraph