Can't connect to google directory-api using proxy with httplib
<p>I have my scripts ready to manage users in google however I can't find anyway to use a proxy with httplib2, as such I am constantly switching to mobile to avoid doing tasks by hand. </p>

<p>For refrence all code comes from the quickstart : <a href="https://developers.google.com/admin-sdk/directory/v1/quickstart/python" rel="nofollow noreferrer">https://developers.google.com/admin-sdk/directory/v1/quickstart/python</a></p>

<p>Simplified to:</p>

<pre><code>credentials = gi.get_credentials()
http = credentials.authorize(httplib2.Http())
service = gi.discovery.build('admin', 'directory_v1', http=http)
print('Starting user OU management')
</code></pre>

<p>I have found this but it doesn't seem to work for HTTP proxy</p>

<pre><code>http = credentials.authorize(httplib2.Http(httplib2.ProxyInfo(httplib2.socks.PROXY_TYPE_HTTP_NO_TUNNEL, 'proxy.example.com', 8080, proxy_user = 'username', proxy_pass = 'password') ))
</code></pre>

<p>Proxy information:</p>

<ul>
<li>Host: wpad </li>
<li>port: 8080</li>
<li>Same proxy for both HTTP and HTTPS traffic</li>
<li>No auth</li>
</ul>

<p><strong>EDIT</strong>: found this <a href="https://github.com/jcgregorio/httplib2/wiki/Examples-Python3" rel="nofollow noreferrer">https://github.com/jcgregorio/httplib2/wiki/Examples-Python3</a></p>

<blockquote>
  <p>Proxy support is unavailable until the third-party socks module is ported to Python 3.</p>
</blockquote>

<p>So are there any other http libraries that I can use??</p>

<p>Thanks</p>

<p><strong>EDIT 2</strong>: Spoke to google and apparently 3.5 isn't supported at all, however this doesn't solve my httplib2 problem with python 3.*</p>