Google Directory API通过代理使用服务帐户 [英] Google Directory API using Service Account via Proxy

查看:77
本文介绍了Google Directory API通过代理使用服务帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我是使用Google API的新手.我需要通过服务帐户来读取公司域中用户的帐户状态.我正在使用Admin SDK,即.Directory API.由于组织的网络和安全策略,必须通过代理服务器进行呼叫.我在使用服务帐户和通过代理服务器时调用Google API时找不到任何帮助.我确实找到了有关日历服务或YouTube,通过代理的帮助,但没有找到DirectoryService的帮助.有人可以帮忙吗?

So I am new to using Google API's. My need is to read a user's account status in the company's domain via a Service Account. Am using the Admin SDK i.e .Directory API's for this. Due to organization's network and security policies, the call has to be made via a proxy server. I cannot find any help on calling a Google API while using a Service account and via a proxy server. I did find help on Calendar service, or Youtube etc via proxy, but none on the DirectoryService. Could someone please help?

推荐答案

当然,您没有查看这些选项. 这类选项与API无关,而与HTTP客户端有关.

Of course that you are not viewing such options. That kind of options are not related to the APIs but to the HTTP client.

例如,在Python中:

For example, in Python:

apiclient.discovery.build(serviceName, version, http)

该http对象是使用代理信息构建的,并相应地发出请求.

That http object is built with the proxy info and makes the requests accordingly.

这篇关于Google Directory API通过代理使用服务帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆