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 get the Twitter::User object representation of a Twitter user we can do:
17 # user = twitter.user('otherlogin')
19 # To get a list of friends of a specific user on Twitter we can do:
20 # friends = twitter.user('otherlogin', :friends)
21 # See the {Model API}[link:files/examples/model_rb.html] for related methods.
23 # To get the authenticated user's Twitter::User object representation we can
25 # me = twitter.my(:info)
27 # To get the authenticated user's followers (only available for authenticated
29 # followers = twitter.my(:followers)
31 # myuser = twitter.my(:info)
32 # followers = myuser.followers
33 # See the {Model API}[link:files/examples/model_rb.html] for more information