I'm trying to utilize pygci to pull voting district data for a particular address. I've enabled the Google Civic Information API for the listed key, but all I'm getting is
"Response was not valid Json"
when I try to run this code:
*from pygci import GCivicInfo, GCivicInfoError
API_KEY = 'AIzaSyA1EBhUzaHBaaFB8H7LiWfVQsf0KnuwRSs'
address = "4935 Spruce St. Philadelphia, PA 19139"
CivicInfo = GCivicInfo(api_key=API_KEY)
try:
CivicInfo.get_representative_by_address(params=address)
except GCivicInfoError as e:
print(e)*