TrainHeartX commited on
Commit
451bf76
verified
1 Parent(s): 2110bf1

Update comunicacion_gmail.py

Browse files
Files changed (1) hide show
  1. comunicacion_gmail.py +1 -1
comunicacion_gmail.py CHANGED
@@ -20,7 +20,6 @@ SCOPES = [
20
  'https://www.googleapis.com/auth/gmail.settings.basic', # Configuraci贸n b谩sica de Gmail
21
  'https://www.googleapis.com/auth/gmail.settings.sharing', # Delegaci贸n de acceso (si es necesario)
22
  'https://www.googleapis.com/auth/drive', # Acceso completo a Drive
23
- 'https://www.googleapis.com/auth/drive.metadata.readonly', # Metadatos de Drive (lectura). Usa 'drive.metadata' para lectura/escritura.
24
  'https://www.googleapis.com/auth/drive.appdata', # Datos de la app en Drive
25
  'https://www.googleapis.com/auth/drive.install', # Conexi贸n a Drive
26
  'https://www.googleapis.com/auth/drive.file', # Para archivos creados o abiertos por la app
@@ -103,6 +102,7 @@ def gmail_tool(accion, parametros={}):
103
  try:
104
  drive_service = build('drive', 'v3', credentials=creds)
105
  about = drive_service.about().get(fields="storageQuota").execute()
 
106
  result = about.get('storageQuota', {}) # Asigna directamente a result.get y maneja si no existe storageQuota
107
  return result
108
 
 
20
  'https://www.googleapis.com/auth/gmail.settings.basic', # Configuraci贸n b谩sica de Gmail
21
  'https://www.googleapis.com/auth/gmail.settings.sharing', # Delegaci贸n de acceso (si es necesario)
22
  'https://www.googleapis.com/auth/drive', # Acceso completo a Drive
 
23
  'https://www.googleapis.com/auth/drive.appdata', # Datos de la app en Drive
24
  'https://www.googleapis.com/auth/drive.install', # Conexi贸n a Drive
25
  'https://www.googleapis.com/auth/drive.file', # Para archivos creados o abiertos por la app
 
102
  try:
103
  drive_service = build('drive', 'v3', credentials=creds)
104
  about = drive_service.about().get(fields="storageQuota").execute()
105
+ print(f"Respuesta de la API de Drive: {about}") # Mensaje de depuraci贸n
106
  result = about.get('storageQuota', {}) # Asigna directamente a result.get y maneja si no existe storageQuota
107
  return result
108