Description
Elected officials for a given district type and district.
Service Arguments
| PARAMETER | DESCRIPTION |
|---|---|
| district_type | The type of district. Valid arguments are board_of_education, charlotte_city_council, county_commissioners, national_congressional, national_senate, state_house, state_senate. At-large are returned when available, and items with no district, such as National Senate, will ignore the district argument. |
| district | The district to be returned. |
| format | Format for the output. Value is either ‘xml’ for xml output or ‘json’ for JSON output. |
Service Output
| PARAMETER | DESCRIPTION |
|---|---|
| district | District. |
| representative | Name and party of the representative. |
Sample Output
Sample XML Output
<rows total-rows="1"> <row> <column name="district">40</column> <column name="representative">Malcolm Graham (D)</column> </row> </rows>
Sample JSON Output
{"total_rows":"1","rows":[{"row":{"district":"40","representative":"Malcolm Graham (D)"}}]}
