2
Google 클라이언트 라이브러리를 사용하여 Google apps 도메인의 모든 조직 단위를 검색하는 방법은 무엇입니까? Google 클라이언트 라이브러리에서 OrgUnits를 다시 검색하는 데 사용해야하는 기능은 무엇입니까? orgunits.list
:Google 클라이언트 라이브러리를 사용하여 전체 또는 하위 조직 단위 검색
나는이 전용의 API 방법이 있습니다 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 ??