<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,6 +13,23 @@ end
 
 class User
   include Voorhees::Resource
+  
+  json_service  :get,  
+                :path =&gt; &quot;/users/show.json&quot;,
+                :hierarchy =&gt; {
+                  :status =&gt; :tweet
+                }
+  
+  def friends
+    json_request do |r|
+      r.path        = &quot;/statuses/friends.json&quot;
+      r.parameters  = {:id =&gt; self.screen_name}
+      r.hierarchy   = {
+        :status =&gt; :tweet
+      }
+    end
+  end
+  
 end
 
 class Tweet
@@ -21,14 +38,48 @@ class Tweet
   json_service  :public_timeline, 
                 :path =&gt; &quot;/statuses/public_timeline.json&quot;,
                 :hierarchy =&gt; {
-                  :user =&gt; User
+                  :user =&gt; User # can be a class
                 }
+                
+  json_service  :users_timeline,
+                :path =&gt; &quot;/statuses/user_timeline.json&quot;,
+                :hierarchy =&gt; {
+                  :user =&gt; :user # or a symbol
+                }
+  
 end
 
+puts &quot;&gt; tweets = Tweet.public_timeline&quot;
 tweets = Tweet.public_timeline
-puts &quot;Found #{tweets.size} tweets, first one is:&quot;
 
-first = tweets[0]
-puts &quot; * Class: #{first.class}&quot;
-puts &quot; * Contents: #{first.text}&quot;
-puts &quot; * Name: #{first.user.name}&quot;
\ No newline at end of file
+puts &quot;&gt; tweets[0].class: #{tweets[0].class}&quot;
+puts &quot;&gt; tweets[0].text: #{tweets[0].text}&quot;
+puts &quot;&gt; tweets[0].user.name: #{tweets[0].user.name}&quot;
+
+puts &quot;\n\n&quot;
+puts &quot;&gt; tweets = Tweet.users_timeline(:id =&gt; 'rlivsey', :page =&gt; 2)&quot;
+tweets = Tweet.users_timeline(:id =&gt; 'rlivsey', :page =&gt; 2)
+
+puts &quot;&gt; tweets[0].text: #{tweets[0].text}&quot;
+puts &quot;&gt; tweets[0].user.name: #{tweets[0].user.name}&quot;
+
+puts &quot;\n\n&quot;
+
+puts &quot;&gt; rlivsey = User.get(:id =&gt; 'rlivsey')&quot;
+rlivsey = User.get(:id =&gt; 'rlivsey')
+
+puts &quot;&gt; rlivsey.name: #{rlivsey.name}&quot;
+puts &quot;&gt; rlivsey.location: #{rlivsey.location}&quot;
+puts &quot;&gt; rlivsey.status.text: #{rlivsey.status.text}&quot;
+puts &quot;&gt; rlivsey.status.created_at: #{rlivsey.status.created_at}&quot;
+
+puts &quot;\n\n&quot;
+
+puts &quot;&gt; friends = rlivsey.friends&quot;
+friends = rlivsey.friends
+
+puts &quot;&gt; friends[0].class: #{friends[0].class}&quot;
+puts &quot;&gt; friends[0].name: #{friends[0].name}&quot;
+puts &quot;&gt; friends[0].status.text: #{friends[0].status.text}&quot;
+
+</diff>
      <filename>examples/twitter.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6146ecd3e27e2168e04ad2396750adc68230bf4f</id>
    </parent>
  </parents>
  <author>
    <name>Richard Livsey</name>
    <email>richard@livsey.org</email>
  </author>
  <url>http://github.com/rlivsey/voorhees/commit/9b2838663aa441b480e2d2d075ddcad233dfde68</url>
  <id>9b2838663aa441b480e2d2d075ddcad233dfde68</id>
  <committed-date>2009-06-20T14:36:44-07:00</committed-date>
  <authored-date>2009-06-20T14:36:44-07:00</authored-date>
  <message>Updated examples/twitter.rb to show more examples</message>
  <tree>df8ba329ae1184d70f95bc7819fa8f7ef62b6c2c</tree>
  <committer>
    <name>Richard Livsey</name>
    <email>richard@livsey.org</email>
  </committer>
</commit>
