Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (33 sloc) 0.913 kb
<?php
require_once('Curl.php');
require_once('Openstate.php');
$os = new Openstate();
echo $os->getStateInfo('me');
//echo $os->legislatorGeoLookup('35.81336', '-78.76648');
//echo $os->legislatorLookup('MDL000210');
// $leg_search = array(
// 'state' => 'ca',
// 'party' => 'democratic',
// 'first_name' => 'Bob',
// 'active' => 'true'
// );
// echo $os->legislatorSearch($leg_search);
// $bill_search = array(
// 'q' => 'agriculture',
// 'state' => 'vt',
// 'chamber' => 'upper'
// );
// echo $os->billSearch($bill_search);
// echo $os->committeeLookup('MDC000065');
// $committee_search = array(
// 'state' => 'md',
// 'chamber' => 'upper'
// );
// echo $os->committeeSearch($committee_search);
// $event_search = array(
// 'state' => 'tx',
// 'type' => 'committee:meeting'
// );
// echo $os->eventSearch($event_search);
//echo $os->eventLookup('TXE00004925');
?>
Jump to Line
Something went wrong with that request. Please try again.