1 # = Status API Examples
3 # gem('twitter4r', '0.2.0')
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')
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)
16 # To post a new status we can do:
17 # status = twitter.status(:post, 'NOT buying overrated iPhone.')
19 # To retrieve the status from it's unique integer status ID we can do the
21 # status = twitter.status(:get, status.id)
23 # To delete a status message we can do:
24 # twitter.status(:delete, status)