1
当我尝试Authenticating Google API with a service account with Java API中的代码时,出现故障并需要通过代理。我发现有same question for Python。有没有Java客户端的解决方案?有大型查询Java客户端的代理配置吗?
当我尝试Authenticating Google API with a service account with Java API中的代码时,出现故障并需要通过代理。我发现有same question for Python。有没有Java客户端的解决方案?有大型查询Java客户端的代理配置吗?
好的,我们支持HTTP代理。
有HTTP传输类两种选择:NetHttpTransport
或ApacheHttpTransport
(基于4.0)
此文档演示如何使用NetHttpTransport
: https://developers.google.com/bigquery/articles/gettingstartedwithjava
然后,您可以设置系统属性在这里配置代理: http://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html#Proxies