我试图使用representativeInfoByAddres
从googlecivicapihttps://developers.google.com/civic-information/docs/v2/representatives/representativeInfoByAddress请求一些数据,但是当我试图调用execute()
时,我得到了一个错误。在
from apiclient.discovery import build
add = "24783 Oakwood Circle Anaheim CA 92801"
service = build('civicinfo','v2', developerKey="key")
rep = service.representatives().representativeInfoByAddress(address = add)
response = rep.execute()
退货
^{pr2}$我做错什么了?在
问题是要使API工作。在
访问https://console.developers.google.com,并确保在“API”下启用了所需的API
相关问题 更多 >
编程相关推荐