0

按照https://developers.google.com/gsuite/add-ons/cats-quickstart上的示例代码,我已经能够创建一个可以在 Calendar/Drive/G-mail 上使用的 GSuite 插件页。文档、表格等中的类似侧边栏(即包含日历/保留/任务的侧边栏)没有我的应用程序图标。

我的清单文件如下所示:

{
  "timeZone": "America/New_York",
  "dependencies": {},
  "exceptionLogging": "STACKDRIVER",
  "oauthScopes": [
    "https://www.googleapis.com/auth/drive.addons.metadata.readonly",
    "https://www.googleapis.com/auth/script.locale"
  ],
  "runtimeVersion": "STABLE",
  "addOns": {
    "common": {
      "name": "Test",
      "logoUrl": "https://www.gstatic.com/images/icons/material/system/1x/pets_black_48dp.png",
      "useLocaleFromApp": true,
      "homepageTrigger": {
        "runFunction": "onHomepage",
        "enabled": true
      }
    },
    "drive": {}
  }
}

4

0 回答 0