问题
I have built an application that uses the import endpoint in the Gmail API Gmail.Users.Messages.import()
to clone an email message but allow for subject changing.
It then deletes the original/old message using the remove endpoint Gmail.Users.Messages.remove()
I would like a way to refresh the Gmail inbox UI or even to just reload the web page from Google Apps Script - however, I'm not aware of how to do this - and a look around the internet hasn't proven especially helpful.
回答1:
Unfortunately it's not possible to control the user's Gmail interface via an API (or add-on). The best your application could do is instruct the user to do it themselves.
来源:https://stackoverflow.com/questions/56580344/how-to-force-the-gmail-inbox-to-reload-refresh