- Description: Retrieves data regarding a specific legislator matching certain criteria. If there is more than one match, only the first result is returned.
- Arguments: An array containing key/value pairs. Possible keys are: title, firstname, middlename, lastname, name_suffix, nickname, party, state, district, in_office, gender, phone, fax, website, webform, email, congress_office, bioguide_id, votesmart_id, fec_id, govtrack_id, crp_id, eventful_id, sunlight_old_id, congresspedia_id, twitter_id, youtube_url
- Notes: To pass more than one value for a given key, pass an array. Example: array( ‘firstname’ => array(‘John’, ‘Hillary’) );
1 2 3 4 5 6 |
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 | stdClass Object ( [legislator] => stdClass Object ( [district] => Junior Seat [title] => Sen [eventful_id] => P0-001-000016119-7 [in_office] => 1 [state] => MI [crp_id] => N00004118 [official_rss] => http://www.stabenow.senate.gov/index.xml [party] => D [email] => [votesmart_id] => 515 [website] => http://stabenow.senate.gov/ [fax] => 202-228-0325 [govtrack_id] => 300093 [firstname] => Debbie [middlename] => Ann [lastname] => Stabenow [congress_office] => 133 Hart Senate Office Building [phone] => 202-224-4822 [webform] => http://stabenow.senate.gov/email.htm [youtube_url] => http://www.youtube.com/SenatorStabenow [nickname] => [bioguide_id] => S000770 [fec_id] => S8MI00281 [gender] => F [senate_class] => I [name_suffix] => [twitter_id] => [sunlight_old_id] => fakeopenID524 [congresspedia_url] => http://www.opencongress.org/wiki/Debbie_Stabenow ) ) |



