Google公民信息API em>
To display the contact information for each Congress person we now use the Google Civic Information API which requires a separate API key.
为了显示每个国会议员的联系信息,我们现在使用Google Civic Information API,该API需要单独的API密钥。
To receive one:
收到一个:
1. Using your Google account, login to the Google API Console
1.使用您的Google帐户,登录到 Google API控制台
.
。
Here you create a project if you don’t already have one.
如果您还没有一个项目,请在这里创建一个项目。
2. Click “Create credentials”.
2.单击“创建凭据”。
3. Choose “API Keys” (do not restrict).
3.选择“ API密钥”(不限制)。
Copy and save this key to use in the CongressLookup settings.
复制并保存此密钥以在CongressLookup设置中使用。
Now you have to enable the Civic API:
现在,您必须启用Civic API:
4. Click the “Library” side menu tab.
4.单击“库”侧面菜单选项卡。
5. In the search field enter “Civic”.
5.在搜索字段中,输入“ Civic”。
6. Click on the “Google Civic Information API” link.
6.单击“ Google Civic Information API”链接。
7. Then click the word “Enable”.
7.然后单击单词“启用”。
8. On your website, go to: Settings > CongressLookup > Configuration.
8.在您的网站上,转到:设置> CongressLookup>配置。
Paste the Civic API key in the Google Civic API Key field.
将Civic API密钥粘贴到Google Civic API Key字段中。
9. Save CongressLookup settings.
9.保存CongressLookup设置。
p>
PLEASE NOTE: YOU CAN NOT USE THE SAME API KEY FOR GOOGLE MAPS AND GOOGLE CIVICS.
请注意:您不能对GOOGLE MAPS和GOOGLE CIVICS使用相同的API密钥。 p>
The following information can be displayed for each legislator.
可以为每个立法者显示以下信息。
You can turn any of these on/off in the Admin settings: Title, Picture, Office, Phone, Zip code, Party, State Name, Contact Form, Email, Website, Facebook, YouTube, Twitter, and Google Plus.
您可以在“管理员”设置中打开/关闭以下任意项:标题,图片,办公室,电话,邮政编码,聚会,州名,联系表,电子邮件,网站,Facebook,YouTube,Twitter和Google Plus。
NOTE: If one or more of these are not available for an individual Congress person, the information will not show in the results on the page, even if you have the box checked.
注意:如果单个国会议员无法使用其中的一个或多个,即使选中了该框,信息也不会显示在页面上的结果中。 p>
Using CongressLookup Plugin
使用CongressLookup插件 strong>
The minimum information needed to get results is (1) a State name and (2) a 5-digit zip code.
获得结果所需的最少信息是(1)国家名称和(2)5位邮政编码。
However, some zip codes cover more than one congressional district so the more of the address is entered the more accurate the results will be.
但是,一些邮政编码覆盖多个国会区,因此输入的地址越多,结果的准确性就越高。 p>
CongressLookup is implemented on your WordPress site with use of a shortcode.
CongressLookup是使用短代码在WordPress网站上实现的。
See the Installation and 请参见安装和FAQs
for more information.
常见问题解答
以获取更多信息。 p>
Customizing The Look of the Plugin
自定义插件的外观 strong>
There are three theme options available: No Theme, Modern and Custom Theme.
共有三个主题选项:无主题,现代和自定义主题。 p>
- No Theme: Uses the core styling from your theme without adding any of it’s own.
- 无主题 strong>:使用主题的核心样式,而不添加任何主题。 li>
- Custom Theme: Allow you to create your own look using CSS and comes with a demo area to preview your changes.
- 自定义主题 strong>:允许您使用CSS创建自己的外观,并带有一个演示区域来预览您的更改。 li>
- Modern Theme:
- 现代主题 strong>: li>
ul>
Support
支持 strong>
If you have any problems, please see our Trouble Shooting Guide before putting in a 故障排除指南,然后再放入
wordpress.org/support/plugin/congresslookup">support request