问题描述
我正在尝试使用 google 工作区备用运行时,这需要清单中的键 enableHttpEndpoints
才能在尝试使用该键保存时使用它给我错误。
以下是我的清单:
{
"timeZone": "America/New_York","dependencies": {
},"exceptionLogging": "STACKDRIVER","oauthScopes": ["https://www.googleapis.com/auth/gmail.addons.execute","https://www.googleapis.com/auth/gmail.Metadata"],"runtimeVersion": "V8","addOns": {
"enableHttpEndpoints": true,"common": {
"name": "My HTTP Add-on","logoUrl": "https://fonts.gstatic.com/s/i/googlematerialicons/markunread_mailBox/v6/black-24dp/1x/gm_markunread_mailBox_black_24dp.png","homepageTrigger": {
"runFunction": "https://us-central1-test-http-runtime.cloudfunctions.net/HttpAddOn/exampleWidgets"
}
},"gmail": {
"contextualTriggers": [{
"unconditional": {
},"onTriggerFunction": "https://us-central1-test-http-runtime.cloudfunctions.net/GmailExample/simpleMessageInfo"
}]
}
}
}
以及它给出的错误:
无效清单:未知字段:[addOns.enableHttpEndpoints]
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)