|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html>
|
3 |
| - <head> |
4 |
| - <meta charset="utf-8"> |
5 |
| - <meta name="apple-mobile-web-app-capable" content="yes"> |
6 |
| - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
7 |
| - <title>Open States API | Committees</title> |
8 |
| - |
9 |
| - |
10 |
| - <link rel="shortcut icon" type="image/ico" href="http://s3.amazonaws.com/assets.sunlightfoundation.com/brisket/1.0/images/favicon.ico"> |
11 |
| - <link rel="stylesheet" type="text/css" href="documentup.css"> |
12 |
| - <script type="text/javascript" src="//use.typekit.net/blp6kvr.js"></script> |
13 |
| - <script type="text/javascript">try{Typekit.load();}catch(e){}</script> |
14 |
| - |
15 |
| -</head> |
16 |
| - <body><div class="sf-header"><div class="container"><a class="sf-logo" href="http://www.sunlightfoundation.com">Sunlight Foundation</a></div></div><div id="container"> |
17 |
| - <div id="nav"> |
18 |
| - |
19 |
| - <div id="header"> |
20 |
| - <h1><a href="index.html" id="logo">Open States API</a> |
21 |
| - </div> |
22 |
| - |
23 |
| - <ul id="sections"> |
24 |
| - |
25 |
| - <li> |
26 |
| - <a href="#committee-fields">Committee Fields</a> |
27 |
| - |
28 |
| - </li> |
29 |
| - |
30 |
| - <li> |
31 |
| - <a href="#methods">Methods</a> |
32 |
| - |
33 |
| - <ul> |
34 |
| - |
35 |
| - <li> |
36 |
| - <a href="#methods/committee-search">Committee Search</a> |
37 |
| - </li> |
38 |
| - |
39 |
| - <li> |
40 |
| - <a href="#methods/committee-detail">Committee Detail</a> |
41 |
| - </li> |
42 |
| - |
43 |
| - </ul> |
44 |
| - |
45 |
| - <li> |
46 |
| - <a href="http://tryit.sunlightfoundation.com/openstates">Try out the API</a> in your browser. |
47 |
| - </li> |
48 |
| - |
49 |
| - </li> |
50 |
| - |
51 |
| - <li> |
52 |
| - <a href="#examples">Examples</a> |
53 |
| - |
54 |
| - <ul> |
55 |
| - |
56 |
| - <li> |
57 |
| - <a href="#examples/committee-search">Committee Search</a> |
58 |
| - </li> |
59 |
| - |
60 |
| - <li> |
61 |
| - <a href="#examples/committee-detail">Committee Detail</a> |
62 |
| - </li> |
63 |
| - |
64 |
| - </ul> |
65 |
| - |
66 |
| - </li> |
67 |
| - |
68 |
| - </ul> |
69 |
| - |
70 |
| - |
71 |
| - <div class="extra twitter"> |
72 |
| - <iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=openstates&show_count=false"></iframe></div><div class="thanks">powered by <a href="http://documentup.com">DocumentUp</a></div> |
73 |
| - |
74 |
| - </div> |
75 |
| - <div id="content"> |
76 |
| - |
77 |
| - <h1>Committees</h1> |
78 |
| -<p>There are two methods available for committee data: |
79 |
| - |
80 |
| -</p> |
81 |
| -<table> |
82 |
| -<tr> <th> Method </th> <th> URL pattern </th> <th> Description </th> </tr> |
83 |
| -<tr> |
84 |
| - <td> <a href="#methods/committee-search">Committee Search</a> </td> |
85 |
| - <td> /committees/ </td> |
86 |
| - <td> Search committees by any of their attributes. </td> |
87 |
| -</tr> |
88 |
| -<tr> |
89 |
| - <td> <a href="#methods/committee-detail">Committee Detail</a> </td> |
90 |
| - <td> /committees/<code>committee_id</code>/ </td> |
91 |
| - <td> Get full detail for committee, including all members. </td> |
92 |
| -</tr> |
93 |
| -</table> |
94 |
| - |
95 |
| -<h2 id='committee-fields'>Committee Fields</h2 id='committee-fields'> |
96 |
| -<p>The following fields are available on committee objects: |
97 |
| - |
98 |
| -</p> |
99 |
| -<ul> |
100 |
| -<li><code>id</code> Open States assigned committee ID.</li> |
101 |
| -<li><code>state</code> State abbreviation.</li> |
102 |
| -<li><code>chamber</code> Chamber committee belongs to: 'upper', 'lower', 'joint'.</li> |
103 |
| -<li><code>committee</code> Name of committee.</li> |
104 |
| -<li><code>subcommittee</code> Name of subcommittee. (if null, object describes the <code>committee</code>)</li> |
105 |
| -<li><code>parent_id</code> Committee id pointing to the parent committee if this is a subcommittee.</li> |
106 |
| -<li><code>sources</code> List of URLs used in gathering information for this legislator.</li> |
107 |
| -<li><code>created_at</code> The date that this object first appeared in our system.</li> |
108 |
| -<li><code>updated_at</code> The date that this object was last updated in our system.</li> |
109 |
| -<li><code>members</code> List of member objects, each has the following keys:<ul> |
110 |
| -<li><code>name</code> Name of legislator as provided by state source.</li> |
111 |
| -<li><code>leg_id</code> Open States-assigned legislator id. (null if no match found).</li> |
112 |
| -<li><code>role</code> Member's role on the committee (e.g. 'chair', 'vice-chair', default role is 'member')</li> |
113 |
| -</ul> |
114 |
| -</li> |
115 |
| -</ul> |
116 |
| -<h2 id='methods'>Methods</h2 id='methods'> |
117 |
| -<h3 id='methods/committee-search'>Committee Search</h3 id='methods/committee-search'> |
118 |
| -<p>This method allows searching by a number of fields: |
119 |
| - |
120 |
| -</p> |
121 |
| -<ul> |
122 |
| -<li><code>committee</code></li> |
123 |
| -<li><code>subcommittee</code></li> |
124 |
| -<li><code>chamber</code></li> |
125 |
| -<li><code>state</code></li> |
126 |
| -</ul> |
127 |
| -<p>Committee objects returned by this method do not include the list of members by default. |
128 |
| - |
129 |
| -</p> |
130 |
| -<p><strong>Example:</strong> <a href="#examples/committee-search">openstates.org/api/v1/committees/?state=dc</a> |
131 |
| - |
132 |
| -</p> |
133 |
| -<h3 id='methods/committee-detail'>Committee Detail</h3 id='methods/committee-detail'> |
134 |
| -<p>This method returns the full committee object given a committee id. |
135 |
| - |
136 |
| -</p> |
137 |
| -<p><strong>Example:</strong> <a href="#examples/committee-detail">openstates.org/api/v1/committees/DCC000029/</a> |
138 |
| - |
139 |
| -</p> |
140 |
| -<h2 id='examples'>Examples</h2 id='examples'> |
141 |
| -<h3 id='examples/committee-search'>Committee Search</h3 id='examples/committee-search'> |
142 |
| -<p><code>http://openstates.org/api/v1/committees/?state=dc</code> |
143 |
| - |
144 |
| -</p> |
145 |
| -<pre><code class="json">[ |
146 |
| - { "<span class="attribute">level</span>": <span class="value"><span class="string">"state"</span></span>, |
147 |
| - "<span class="attribute">created_at</span>": <span class="value"><span class="string">"2011-11-09 02:43:35"</span></span>, |
148 |
| - "<span class="attribute">updated_at</span>": <span class="value"><span class="string">"2013-03-27 03:23:42"</span></span>, |
149 |
| - "<span class="attribute">parent_id</span>": <span class="value"><span class="literal">null</span></span>, |
150 |
| - "<span class="attribute">state</span>": <span class="value"><span class="string">"dc"</span></span>, |
151 |
| - "<span class="attribute">subcommittee</span>": <span class="value"><span class="literal">null</span></span>, |
152 |
| - "<span class="attribute">committee</span>": <span class="value"><span class="string">"Finance and Revenue"</span></span>, |
153 |
| - "<span class="attribute">chamber</span>": <span class="value"><span class="string">"upper"</span></span>, |
154 |
| - "<span class="attribute">id</span>": <span class="value"><span class="string">"DCC000017"</span> </span>}, |
155 |
| - { "<span class="attribute">level</span>": <span class="value"><span class="string">"state"</span></span>, |
156 |
| - "<span class="attribute">created_at</span>": <span class="value"><span class="string">"2011-11-09 02:43:35"</span></span>, |
157 |
| - "<span class="attribute">updated_at</span>": <span class="value"><span class="string">"2013-03-06 02:18:33"</span></span>, |
158 |
| - "<span class="attribute">parent_id</span>": <span class="value"><span class="literal">null</span></span>, |
159 |
| - "<span class="attribute">state</span>": <span class="value"><span class="string">"dc"</span></span>, |
160 |
| - "<span class="attribute">subcommittee</span>": <span class="value"><span class="literal">null</span></span>, |
161 |
| - "<span class="attribute">committee</span>": <span class="value"><span class="string">"Subcommittee on Redistricting 2011"</span></span>, |
162 |
| - "<span class="attribute">chamber</span>": <span class="value"><span class="string">"upper"</span></span>, |
163 |
| - "<span class="attribute">id</span>": <span class="value"><span class="string">"DCC000025"</span> </span>}, |
164 |
| - { "<span class="attribute">chamber</span>": <span class="value"><span class="string">"upper"</span></span>, |
165 |
| - "<span class="attribute">created_at</span>": <span class="value"><span class="string">"2013-01-07 21:05:11"</span></span>, |
166 |
| - "<span class="attribute">updated_at</span>": <span class="value"><span class="string">"2013-03-27 03:23:42"</span></span>, |
167 |
| - "<span class="attribute">parent_id</span>": <span class="value"><span class="literal">null</span></span>, |
168 |
| - "<span class="attribute">state</span>": <span class="value"><span class="string">"dc"</span></span>, |
169 |
| - "<span class="attribute">subcommittee</span>": <span class="value"><span class="literal">null</span></span>, |
170 |
| - "<span class="attribute">committee</span>": <span class="value"><span class="string">"Business, Consumer and Regulatory Affairs"</span></span>, |
171 |
| - "<span class="attribute">id</span>": <span class="value"><span class="string">"DCC000029"</span> </span>}, |
172 |
| - { "<span class="attribute">level</span>": <span class="value"><span class="string">"state"</span></span>, |
173 |
| - "<span class="attribute">created_at</span>": <span class="value"><span class="string">"2011-11-09 02:43:35"</span></span>, |
174 |
| - "<span class="attribute">updated_at</span>": <span class="value"><span class="string">"2013-03-27 03:23:41"</span></span>, |
175 |
| - "<span class="attribute">parent_id</span>": <span class="value"><span class="literal">null</span></span>, |
176 |
| - "<span class="attribute">state</span>": <span class="value"><span class="string">"dc"</span></span>, |
177 |
| - "<span class="attribute">subcommittee</span>": <span class="value"><span class="literal">null</span></span>, |
178 |
| - "<span class="attribute">committee</span>": <span class="value"><span class="string">"Human Services"</span></span>, |
179 |
| - "<span class="attribute">chamber</span>": <span class="value"><span class="string">"upper"</span></span>, |
180 |
| - "<span class="attribute">id</span>": <span class="value"><span class="string">"DCC000014"</span> </span>}, |
181 |
| - ...truncated... |
182 |
| -]</code></pre> |
183 |
| -<h3 id='examples/committee-detail'>Committee Detail</h3 id='examples/committee-detail'> |
184 |
| -<p><code>http://openstates.org/api/v1/committees/DCC000029/</code> |
185 |
| - |
186 |
| -</p> |
187 |
| -<pre><code class="json">{ |
188 |
| - "<span class="attribute">chamber</span>": <span class="value"><span class="string">"upper"</span></span>, |
189 |
| - "<span class="attribute">committee</span>": <span class="value"><span class="string">"Business, Consumer and Regulatory Affairs"</span></span>, |
190 |
| - "<span class="attribute">created_at</span>": <span class="value"><span class="string">"2013-01-07 21:05:11"</span></span>, |
191 |
| - "<span class="attribute">id</span>": <span class="value"><span class="string">"DCC000029"</span></span>, |
192 |
| - "<span class="attribute">members</span>": <span class="value">[ |
193 |
| - { |
194 |
| - "<span class="attribute">leg_id</span>": <span class="value"><span class="string">"DCL000014"</span></span>, |
195 |
| - "<span class="attribute">role</span>": <span class="value"><span class="string">"chairperson"</span></span>, |
196 |
| - "<span class="attribute">name</span>": <span class="value"><span class="string">"Vincent Orange"</span> |
197 |
| - </span>}, |
198 |
| - { |
199 |
| - "<span class="attribute">leg_id</span>": <span class="value"><span class="string">"DCL000020"</span></span>, |
200 |
| - "<span class="attribute">role</span>": <span class="value"><span class="string">"member"</span></span>, |
201 |
| - "<span class="attribute">name</span>": <span class="value"><span class="string">"David Grosso"</span> |
202 |
| - </span>}, |
203 |
| - { |
204 |
| - "<span class="attribute">leg_id</span>": <span class="value"><span class="string">"DCL000007"</span></span>, |
205 |
| - "<span class="attribute">role</span>": <span class="value"><span class="string">"member"</span></span>, |
206 |
| - "<span class="attribute">name</span>": <span class="value"><span class="string">"Jim Graham"</span> |
207 |
| - </span>}, |
208 |
| - { |
209 |
| - "<span class="attribute">leg_id</span>": <span class="value"><span class="string">"DCL000002"</span></span>, |
210 |
| - "<span class="attribute">role</span>": <span class="value"><span class="string">"member"</span></span>, |
211 |
| - "<span class="attribute">name</span>": <span class="value"><span class="string">"Mary M. Cheh"</span> |
212 |
| - </span>}, |
213 |
| - { |
214 |
| - "<span class="attribute">leg_id</span>": <span class="value"><span class="string">"DCL000010"</span></span>, |
215 |
| - "<span class="attribute">role</span>": <span class="value"><span class="string">"member"</span></span>, |
216 |
| - "<span class="attribute">name</span>": <span class="value"><span class="string">"Yvette Alexander"</span> |
217 |
| - </span>} |
218 |
| - ]</span>, |
219 |
| - "<span class="attribute">parent_id</span>": <span class="value"><span class="literal">null</span></span>, |
220 |
| - "<span class="attribute">sources</span>": <span class="value">[ { "<span class="attribute">url</span>": <span class="value"><span class="string">"http://dccouncil.us/committees/committee-on-business-consumer-and-regulatory-affairs"</span> </span>} ]</span>, |
221 |
| - "<span class="attribute">state</span>": <span class="value"><span class="string">"dc"</span></span>, |
222 |
| - "<span class="attribute">subcommittee</span>": <span class="value"><span class="literal">null</span></span>, |
223 |
| - "<span class="attribute">updated_at</span>": <span class="value"><span class="string">"2013-03-27 03:23:42"</span> |
224 |
| -</span>}</code></pre> |
225 |
| - |
226 |
| - </div> |
227 |
| -</div> |
228 |
| -<script type="text/javascript"> |
229 |
| - |
230 |
| - var _gaq = _gaq || []; |
231 |
| - _gaq.push(['_setAccount', 'na']); |
232 |
| - _gaq.push(['_trackPageview']); |
233 |
| - |
234 |
| - (function() { |
235 |
| - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
236 |
| - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
237 |
| - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
238 |
| - })(); |
239 |
| - |
240 |
| -</script> |
241 |
| - |
242 |
| -</body> |
| 3 | + <script> |
| 4 | + window.location = "http://docs.openstates.org/api/committees.html"; |
| 5 | + </script> |
| 6 | + <a href="http://docs.openstates.org/api/committees.html">this page has moved</a> |
243 | 7 | </html>
|
0 commit comments