import os, json from google.oauth2.credentials import Credentials from googleapiclient.discovery import build token_path = os.path.expanduser("~/.hermes/profiles/reviewer/google_token.json") with open(token_path, "r") as f: creds_data = json.load(f) creds = Credentials.from_authorized_user_info(creds_data) docs_service = build("docs", "v1", credentials=creds) # Let's inspect the API document schema for batchUpdate requests import googleapiclient.discovery print(docs_service._resource_desc['schemas']['Request']['properties'].keys())