SunlightLobbyist::lobbyistFiling()

  • Description: Retrieves data on a given lobbyist filing
  • Arguments: Requires filing_id which can be a string or an array with key filing_id. The filing_id is a unique identifier assigned by the Senate.
1
2
3
4
5
6
api_key = 'XXXXXXXXXXXX';

echo '<pre>';
print_r( $sf-&gt;lobbyistFiling( '29D4D19E-CB7D-46D2-99F0-27FF15901A4C' ) );
echo '</pre>';
?&gt;

Result:

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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
stdClass Object
(
    [registrant_address] =&gt; 1818 N Street NW
Suite 410
Washington, CA 20036
    [registrant_ppb_country] =&gt; USA
    [client_contact_firstname] =&gt; Scott
    [registrant_senate_id] =&gt; 318857
    [filing_type] =&gt; REGISTRATION
    [filing_year] =&gt; 2007
    [client_contact_suffix] =&gt;
    [client_senate_id] =&gt; 12
    [registrant_country] =&gt; USA
    [filing_id] =&gt; 29D4D19E-CB7D-46D2-99F0-27FF15901A4C
    [client_description] =&gt; unspecified
    [client_contact_lastname] =&gt; Wells
    [issues] =&gt; Array
        (
            [0] =&gt; stdClass Object
                (
                    [issue] =&gt; stdClass Object
                        (
                            [code] =&gt; GOVERNMENT ISSUES
                            [specific_issue] =&gt; unspecified
                        )

                )

        )

    [client_country] =&gt; USA
    [client_ppb_country] =&gt; USA
    [registrant_description] =&gt; unspecified
    [client_name] =&gt; SUNLIGHT FOUNDATION
    [registrant_name] =&gt; Sunlight Foundation
    [client_contact_middlename] =&gt;
    [filing_amount] =&gt;
    [client_raw_contact_name] =&gt;
    [filing_date] =&gt; 2007-08-06
    [filing_pdf] =&gt; http://soprweb.senate.gov/index.cfm?event=printFiling&amp;filingId=29D4D19E-CB7D-46D2-99F0-27FF15901A4C
    [client_ppb_state] =&gt; CALIFORNIA
    [lobbyists] =&gt; Array
        (
            [0] =&gt; stdClass Object
                (
                    [lobbyist] =&gt; stdClass Object
                        (
                            [suffix] =&gt;
                            [firstname] =&gt; MICHAEL
                            [middlename] =&gt;
                            [lastname] =&gt; KLEIN
                            [raw_name] =&gt;
                            [official_position] =&gt; N/A
                        )

                )

            [1] =&gt; stdClass Object
                (
                    [lobbyist] =&gt; stdClass Object
                        (
                            [suffix] =&gt;
                            [firstname] =&gt; ZEPHYR
                            [middlename] =&gt;
                            [lastname] =&gt; TEACHOUT
                            [raw_name] =&gt;
                            [official_position] =&gt; N/A
                        )

                )

            [2] =&gt; stdClass Object
                (
                    [lobbyist] =&gt; stdClass Object
                        (
                            [suffix] =&gt;
                            [firstname] =&gt; ELLEN
                            [middlename] =&gt;
                            [lastname] =&gt; MILLER
                            [raw_name] =&gt;
                            [official_position] =&gt; N/A
                        )

                )

            [3] =&gt; stdClass Object
                (
                    [lobbyist] =&gt; stdClass Object
                        (
                            [suffix] =&gt;
                            [firstname] =&gt; NISHA
                            [middlename] =&gt;
                            [lastname] =&gt; THOMPSON
                            [raw_name] =&gt;
                            [official_position] =&gt; N/A
                        )

                )

        )

    [filing_period] =&gt; undetermined
    [client_state] =&gt; CALIFORNIA
)