Source code for sponsor

from datetime import datetime  # noqa
from typing import Any, Dict

from dateutil import parser  # noqa

from wa_leg_api import waleg


[docs]def get_sponsors(biennium: str) -> Dict[str, Any]: """All Representatives and Senators that have served during the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06 See: http://wslwebservices.leg.wa.gov/sponsorservice.asmx?op=GetSponsors""" argdict: Dict[str, Any] = dict(biennium=biennium) keydict: Dict[str, Any] = {} return waleg.call("Sponsor", "GetSponsors", argdict, keydict)
[docs]def get_house_sponsors(biennium: str) -> Dict[str, Any]: """All Representatives that have served during the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06 See: http://wslwebservices.leg.wa.gov/sponsorservice.asmx?op=GetHouseSponsors""" argdict: Dict[str, Any] = dict(biennium=biennium) keydict: Dict[str, Any] = {} return waleg.call("Sponsor", "GetHouseSponsors", argdict, keydict)
[docs]def get_senate_sponsors(biennium: str) -> Dict[str, Any]: """All Senators that have served during the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06 See: http://wslwebservices.leg.wa.gov/sponsorservice.asmx?op=GetSenateSponsors""" argdict: Dict[str, Any] = dict(biennium=biennium) keydict: Dict[str, Any] = {} return waleg.call("Sponsor", "GetSenateSponsors", argdict, keydict)
[docs]def get_requesters(biennium: str) -> Dict[str, Any]: """All entities that can request legislation for the given biennium. Exception thrown for invalid biennium. Expects biennium to be in the format: 2005-06 See: http://wslwebservices.leg.wa.gov/sponsorservice.asmx?op=GetRequesters""" argdict: Dict[str, Any] = dict(biennium=biennium) keydict: Dict[str, Any] = { "id": int, } return waleg.call("Sponsor", "GetRequesters", argdict, keydict)