googleapiclient.errors.HttpError: <HttpError 404 when requesting https://www.googleapis.com/admin/directory/v1/customer/my_customer/resources/calendars?alt=json returned "Domain not found.">
from oauth2client.service_account import ServiceAccountCredentialsfrom apiclient.discovery import buildimport jsonfrom httplib2 import Http
scopes = ['https://www.googleapis.com/auth/calendar',
credentials = ServiceAccountCredentials.from_json_keyfile_name( 'crr-service-secret.json', scopes=scopes )http = credentials.authorize(Http())directory = build('admin', 'directory_v1', http=http)
response = directory.resources().calendars().list(customer='my_customer')print(response.execute(http=http))