Permalink
Browse files

Updated readme example to new API

  • Loading branch information...
1 parent b41060a commit a329d840bbbf825c50e238f50f3cd32c9adae861 Jeffrey Haprer committed Mar 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.markdown
View
4 README.markdown
@@ -27,13 +27,13 @@ You can specify the sections you want to pull from the RESTful API.
<pre><code>
sections = ('bill_id', 'sponsor', 'committees')
bill = Bill.get_bill(bill_id='hr3-112', sections=sections)
-print bill['sponsor_id']
+print bill['sponsor']
</pre></code>
Otherwise, it uses the default that's specified in the library.
<pre><code>
-bill = RTC.Bill.get_bill(bill_id)
+bill = RTC.Bill.get_bill(bill_id='hr3-112')
print bill['sponsor_id'], bill['vetoed'], bill['last_action']['text']
</pre></code>

0 comments on commit a329d84

Please sign in to comment.