Gmail附加组件-访问被拒绝:缺少访问令牌

时间:2018-08-01 18:17:16

标签: google-apps-script gmail-addons

我正在学习如何使用this "Quickstart" tutorial / guide创建Gmail附件。

一直进行并部署它,选择来自同一发送者的具有最近线程的任何线程时,都会出现运行时错误:

Error with the add-on.
Run time error.
Access denied: : Missing access token for authorization. Request: MailboxService.GetThread. [line: 55, function: , file: Code]

我已经尝试了我的个人帐户和Gsuite帐户,并遇到相同的错误。

根据the docs,用于获取和设置accessToken的代码应该是正确的。而且Oauth范围也是正确的。

有人知道为什么它不起作用吗?

谢谢!

0 个答案:

没有答案