google-apps-script - 无法通过 gmail 插件访问 gmail 联系人(已包含 oauth 范围)
问题描述
我正在尝试在我的插件中执行此操作,但出现错误
您无权调用 getContact [line: 37, function: addOnLogic, file: app]
var contact = ContactsApp.getContact('john.doe@example.com');
我添加了以下范围。
"oauthScopes": [
"https://www.googleapis.com/auth/gmail.addons.execute",
"https://www.googleapis.com/auth/gmail.readonly",
"https://www.googleapis.com/auth/gmail.compose",
"https://www.googleapis.com/auth/gmail.addons.current.action.compose",
"https://www.googleapis.com/auth/script.external_request",
"https://www.google.com/m8/feeds/",
"https://www.googleapis.com/auth/contacts" ]
解决方案
推荐阅读
- django - 如何在 django 中插入不同的电子邮件 mysql
- swift - PerfectTemplate 在 Relase 模式下得到“致命错误:UnsafeMutablePointer.initialize 重叠范围”
- c# - 从 Grades.txt 文件中读取成绩并将最佳成绩保存到 BestGrades.txt
- javascript - 在firebase数据库中添加数据后,我的html表没有实时更新
- java - perm gen 是堆的一部分吗?
- reactjs - 带有插件的 SurveyJs 输入元素
- html - 为什么画布会破坏弹性尺寸?
- material-ui - 请帮我解决有关material_ui的简单问题
- javascript - 如何在 Vue 项目中导入 Mozilla PDF.js?
- sentry - 哨兵反应本机表演没有记录任何东西