Added v 0.3.1 snapshot.
[twitter4r-core.git] / examples / status.rb
blob419e3fbf31b1e2e3e03c2d34548d097eda517e3c
1 # = Status API Examples
2 #  require('rubygems')
3 #  gem('twitter4r', '0.2.0')
4 #  require('twitter')
5
6 # The following is only required if you want to use some configuration 
7 # helper methods like <tt>Twitte4R::Client.from_config</tt> for 
8 # sensitive/instance context.
9 #  require 'twitter/console'
10 #  config_file = File.join(File.dirname(__FILE__), '..', 'config', 'twitter.yml')
11 #  
12 # To override client connection configuration please refer to 
13 # the {<tt>configure.rb</tt>}[file:configure_rb.html] example code.
14 #  twitter = Twitter::Client.from_config(config_file)
15
16 # To post a new status we can do:
17 #  status = twitter.status(:post, 'NOT buying overrated iPhone.')
18
19 # To retrieve the status from it's unique integer status ID we can do the 
20 # following:
21 #  status = twitter.status(:get, status.id)
22
23 # To delete a status message we can do:
24 #  twitter.status(:delete, status)