Skip to content

Commit a329d84

Browse files
author
Jeffrey Haprer
committed
Updated readme example to new API
1 parent b41060a commit a329d84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ You can specify the sections you want to pull from the RESTful API.
2727
<pre><code>
2828
sections = ('bill_id', 'sponsor', 'committees')
2929
bill = Bill.get_bill(bill_id='hr3-112', sections=sections)
30-
print bill['sponsor_id']
30+
print bill['sponsor']
3131
</pre></code>
3232

3333
Otherwise, it uses the default that's specified in the library.
3434

3535
<pre><code>
36-
bill = RTC.Bill.get_bill(bill_id)
36+
bill = RTC.Bill.get_bill(bill_id='hr3-112')
3737
print bill['sponsor_id'], bill['vetoed'], bill['last_action']['text']
3838
</pre></code>
3939

0 commit comments

Comments
 (0)