The new Gmail API allows us to create and view drafts, but is there a way to get a URL link to view the draft?
I can manually create the link using the draft's ThreadId with something like this:
https://mail.google.com/mail/u/0/#drafts?compose={ThreadId}
But that is somewhat fragile if Google decides to change how those URLs are structured. I also don't know if the URL will be different for people in other countries. The 0 will also change depending on how many accounts you are logged into in the browser. Is there a better way to get this link than creating it manually like I am?
Also, is there a way to pass authentication information along with the URL so that user is logged in when going to the webpage? I'm assuming that there is no way to do this, but I wanted to check. If a user is not logged in, the draft link brings up the login page and the draft is not displayed after logging in.