Gmail API Python Client in Cloud Function
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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?
- 主要语言
- Python
- 星标
- 1.4k
- 派生
- 917
- 平均合并
- 3 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
googleworkspace/python-samples 的其他 Issue
-
ايقاف البحث الأمن可能重新可做 @sqrrrl 于 400 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#2434 · 已指派 1 人 ·
-
Slow Uploads using Google Drive API with Python可能重新可做 @sqrrrl 于 740 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1852 · 1 条评论 · 已指派 1 人 ·
-
403 error from google after a few successful runs of my code可能重新可做 @vinay-google 于 912 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1424 · 已指派 1 人 ·
-
How to see the progress of files which is getting uploaded可能重新可做 @vinay-google 于 928 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1404 · 已指派 1 人 ·
-
Phyton Samples可能重新可做 @PierrickVoulet 于 975 天前认领,目前没有进行中的 PR。 未关闭
googleworkspace/python-samples#1279 · 已指派 1 人 ·
查看 googleworkspace/python-samples 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
audit-reference-check
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
site-bug triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
canonical/paas-charm#407 · 1 条评论 ·
维护者通常 5 天内回复