如何分发gmail应用脚本

时间:2018-03-22 03:36:35

标签: gmail-addons

我有一个应用程序脚本,我想在开发人员模式下分发。它没有交互式UI。脚本本身根据特定参数进行搜索和转发消息。它在简单的定时触发器上完美运行。当我将其作为开发人员附加组件进行测试时,它在测试帐户中不执行任何操作。我假设问题出在json代码上。

{
  "timeZone": "**********",
   "oauthScopes": [
    "https://www.googleapis.com/auth/gmail.addons.execute",
    "https://www.googleapis.com/auth/gmail.readonly",
    "https://www.googleapis.com/auth/gmail.addons.current.message.readonly",
    "https://www.googleapis.com/auth/gmail.addons.current.message.action",
    "https://www.googleapis.com/auth/gmail.modify",
    "https://mail.google.com/"


  ],
   "gmail": {
    "name": "Test",
     "openLinkUrlPrefixes": [
      "https://mail.google.com/"
    ],
     "logoUrl": "https://www.gstatic.com/images/icons/material/system/2x/bookmark_black_24dp.png"
   },
  "dependencies": {
    "enabledAdvancedServices": [{
      "userSymbol": "Gmail",
      "serviceId": "gmail",
      "version": "v1"
    }]
  },
  "webapp": {
    "access": "ANYONE",
    "executeAs": "USER_ACCESSING"
  },
  "exceptionLogging": "STACKDRIVER"
}

0 个答案:

没有答案