Google api 使用Google客户端库检索所有或子组织单位

Google api 使用Google客户端库检索所有或子组织单位,google-api,google-apps,google-api-python-client,Google Api,Google Apps,Google Api Python Client,如何使用google客户端库检索google应用程序域中的所有组织单位?我们需要使用哪个函数来检索google客户端库中的OrgUnits 我没有找到任何有关的文档 有一种专门用于此的API方法:orgunits.list 我不是python专家,但我希望调用如下: directory.orgunits().list(customerId='my_customer').execute() 顺便说一句,这不是GDataAPI,这就是为什么您没有在那里找到信息。GData是旧的api格式的名称

如何使用google客户端库检索google应用程序域中的所有组织单位?我们需要使用哪个函数来检索google客户端库中的OrgUnits

我没有找到任何有关的文档


有一种专门用于此的API方法:
orgunits.list

我不是python专家,但我希望调用如下:

directory.orgunits().list(customerId='my_customer').execute()
顺便说一句,这不是GDataAPI,这就是为什么您没有在那里找到信息。GData是旧的api格式的名称,谷歌正在逐渐地反对这种格式

directory.orgunits().list(customerId='my_customer').execute()