谷歌的天气API环节需要人力认证

问题描述:

我使用谷歌的天气API 开发的天气应用程序
但是从今天停止工作。

I developed a weather app using google weather API but from today it stopped working.

当我试图通过浏览器访问使用位置的天气API,它要求人类的认证。

When I tried to access the weather API using location through browser it asks for human authentication.

哪有我的应用程序工作的时候就是这个样子?有没有办法绕过认证过程?

How can my app work when it is like this? Is there a way to bypass the authentication process?

这是非常奇怪的行为......我不知道是否有事可做与沿过去了,当我尝试加载在Chrome中的API URL头,不支持API ...或者,如果我在Firefox做同样的网址,工作得很好。

It's very odd behavior...I wonder if it has something to do with headers that are passed along as when I try loading the API url in Chrome, Unsupported API...or if I do same URL in Firefox, works just fine.

这也是值得注意的是,我试图通过将以下两行单独的Web服务器的Apache配置Apache的代理服务器设置为谷歌的气象服务,并通过www.domain.com/weather/api?weather=Chicago引用的API ,它仍然有效...所以这是我的解决方法现在:

It's also worth noting that I tried setting up an Apache Proxy to Google's weather service by placing the following two lines in a separate Web Server's apache config and referenced the API via www.domain.com/weather/api?weather=Chicago and it still works...so that's my workaround for now:

ProxyPassReverse /天气/ http://www.google.com/ig/

ProxyPassReverse /weather/ http://www.google.com/ig/

的ProxyPass /天气/ http://www.google.com/ig/

ProxyPass /weather/ http://www.google.com/ig/