【发布时间】:2014-12-15 06:36:41
【问题描述】:
如何使用谷歌客户端库检索谷歌应用域中的所有组织单位?我们需要使用哪个函数来检索 google 客户端库中的 OrgUnits ?
我在gdata-python-client site 上没有找到任何文档
def create_service():
f = file(API_DATA["SERVICE_PEM_PATH"], 'rb')
key = f.read()
f.close()
credentials = SignedJwtAssertionCredentials(API_DATA["SERVICE_EMAIL"], key, scope=API_DATA["DIRECTORY_SCOPES"], sub=API_DATA["ADMIN_EMAIL"])
http = httplib2.Http()
http = credentials.authorize(http)
service = build("admin", "directory_v1", http=http)
return service
directory = create_service()
# directory.RetrieveAllOrganizationUsers() -- Function to retrieve Org Units ??
【问题讨论】:
标签: google-api google-apps google-api-python-client