Modifying a draft without downloading attachments

感情迁移 提交于 2019-12-18 09:13:42

问题


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:

  1. Download the draft and decode it.
  2. Edit the message body to your liking.
  3. Encode it and save the draft.
  4. Send the 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?

Thanks.


回答1:


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.



来源:https://stackoverflow.com/questions/28318329/modifying-a-draft-without-downloading-attachments

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!