How to open a draft created with Gmail API in browser?

后端 未结 2 942
南笙
南笙 2021-01-28 20:44

Im trying to create a gmail draft using gmail API and open it in a new tab.

When i try to open a draft using the following url : https://mail.google.com

2条回答
  •  野性不改
    2021-01-28 21:16

    The way to make this url changed, now it works like this:

    mail.google.com/mail/#inbox?compose=draft.message.id

    If you list your drafts you get

    {
      "drafts": [
        {
          "id": "r5632827412362757569",
          "message": {
            "id": "174f4fa0dd96af123",
            "threadId": "174f4f59344d6321"
          }
        }
      ],
      ...
    }
    

    So, to open this draft you need the following url :

    mail.google.com/mail/#inbox?compose=174f4fa0dd96af123

提交回复
热议问题