Gmail API Python Client in Cloud Function

Ouverte
#220 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
Une demi-journée
Accessibilité débutants
15/100
Type d'issue
Documentation
Clarté
À clarifier
Activité
À l'abandon
Stack technique
gcp, python
Domaine
api, cloud

Piste de recherche

The send call is gmail_client.users().messages().send(...) from the linked Python guide, but the bucket writes at /bucket/emailSubject/attachmentFileName most likely come from the user's own Cloud Function code, not from this repo. Start by finding where attachments are written to Cloud Storage in that code. Done means a maintainer reply or doc note that says which code controls the upload and how to skip it.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Problem

I'm using Gmail API to send emails with attachments within a cloud function. using gmail api client

gmail_client.users().messages().send(userId='me', body={'raw': raw_string}).execute()

following this Guide: https://developers.google.com/gmail/api/guides/sending#python
I implemented it and it is working fine, but the problem is that the attachments are saved (uploaded) to a cloud storage whenever an email is sent, in the following path

/bucket/emailSubject/attachmentFileName

I don't wish this to happen, I don't want the attachments to be saved in cloud storage, is there a way I can prevent this?

Langage dominant
Python
Étoiles
1.4k
Forks
917
Merge moyen
3 min
PR mergées (30 j)
1

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de googleworkspace/python-samples

Toutes les issues de googleworkspace/python-samples

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.