我正在编写一个带有appscript的gmail插件,我希望它只在用户打开该插件时才执行http请求,而不是每次呈现卡片时执行。
function main(e){
var mainCard = CardService.newCardBuilder();
// Set up card sections
UrlFetchApp.fetch(...) // Will perform the request even if addon is not opened
return [card.build()]
}
是否可以在打开的卡片上执行UrlFetchApp,而不是在渲染时执行?
https://stackoverflow.com/questions/53723227
复制相似问题