Skip to content

Commit 4574c06

Browse files
committed
Add nominations endpoint to congress service.
1 parent f536b2b commit 4574c06

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sunlight/services/congress.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,15 @@ def hearings(self, **kwargs):
245245
"""
246246
return self.get('hearings', **kwargs)
247247

248+
def nominations(self, **kwargs):
249+
"""
250+
Search and filter through presidential nominations in Congress.
251+
252+
For details see `Nominations API docs
253+
<http://sunlightlabs.github.io/congress/nominations.html>`
254+
"""
255+
return self.get('nominations', **kwargs)
256+
248257
# implementation methods
249258
def _get_url(self, endpoint, apikey, **kwargs):
250259
url_args = preencode_values( flatten_dict(kwargs) )

0 commit comments

Comments
 (0)