在 Gmail 插件中,这一行:
var attachments = message.getAttachments();
失败并显示一条消息Access denied: : Not allowed for full access to mail message.
appscripts.json
清单文件包含:
"oauthScopes": [
"https://www.googleapis.com/auth/gmail.addons.execute",
"https://www.googleapis.com/auth/gmail.addons.current.message.metadata",
"https://www.googleapis.com/auth/gmail.addons.current.message.action",
"https://www.googleapis.com/auth/script.external_request",
"https://www.googleapis.com/auth/script.locale"
]
还需要什么?我没有发现任何提及getAttachments
.