修改草稿而不下载附件 [英] Modifying a draft without downloading attachments
问题描述
我的Gmail帐户中保存了一份草稿,其中包含附件。在稍后阶段,我意识到我必须通过Gmail API向邮件添加一些文本。在更晚的阶段,我决定发送草稿。根据我的发现,唯一的方法是:
I have a draft saved on my Gmail account, containing an attachment. At a later stage, I realise that I have to add some text to the mail, via the Gmail API. At an even later stage, I decide to send the draft. From what I've found, the only way to do this is to:
- 下载草稿并对其进行解码。
- 按照自己的喜好编辑邮件正文。
- 编码并保存草稿。 发送草稿。 >
- Download the draft and decode it.
- Edit the message body to your liking.
- Encode it and save the draft.
- Send the draft.
这是非常好的,直到你在选秀中有很大的依恋。除了使用 Users.draft进行上述步骤之外,还有其他方法吗? :更新,以便您只需要更改邮件时不必下载附件?
This is all well and good, until you have a big attachment in your draft. Is there another way than doing the steps outlined above with the Users.draft: update, so that you don't have to download the attachments when you just want to alter the message?
谢谢。
推荐答案
不幸的是,目前似乎还没有更简单的替代方案。我不确定需要进行哪些API更改才能支持该用例,但您可以提交功能请求,我们可以与团队讨论。
No, unfortunately there doesn't appear to be a simpler alternative at the moment. I'm not sure what API changes would be needed to support that use case, but you can file a feature request and we can talk to the team about it.
这篇关于修改草稿而不下载附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!