我正在尝试使用 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]