forked from mablerf/php-openstates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
47 lines (33 loc) · 913 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?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');
?>