简体   繁体   English

如何计算附加组件用户的每个自定义函数使用情况

[英]How can I count every custom function usage for a user of an add-on

I made an add-on with a custom function that calls an API.我使用调用 API 的自定义函数制作了一个附加组件。 My plan is: when a user installs add-on I give him 20 free calls.我的计划是:当用户安装附加组件时,我会给他 20 个免费电话。 Can I count every usage of the custom function server-side?我可以计算自定义函数服务器端的每次使用吗?

UPD: I've found a solution. UPD:我找到了解决方案。 Today I set up a function to change a number of calls pushing every call to Firebase.今天我设置了一个函数来更改将每次调用推送到 Firebase 的调用次数。 This article helped a lot to understand everything. 这篇文章对理解一切有很大帮助。

Google Apps Script can't count custom function usage per user as they are ran anonymously. Google Apps Script 无法统计每个用户的自定义函数使用情况,因为它们是匿名运行的。

Reference参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将 Google Sheet 自定义功能作为插件 - How to make a Google Sheet custom function as an Add-On 我可以修改 Google Analytics 插件以在插件运行后运行 function 吗? - Can I modify an Google Analytics add-on to run a function after the add-on runs? 如何在来自附加工具条的自定义函数中插入数据 - How to insert data in a custom function that comes from an add-on sidebar 如何在gmail插件中添加按钮以触发我需要的功能? - How to add a button in a gmail add-on to trigger the function that I need? Google表格加载项中的自定义功能 - Custom Function in Google Sheets Add-On 我怎样才能“发布”一个只供我使用的编辑器插件? - How can I "publish" an editor add-on to be used by just me? 附加触发器未运行,如何解决 - Add-on Trigger not running, how can I troubleshoot 如何为谷歌日历创建插件? 是否可以? - How can I create add-on for google calendar? Is it possible? 如何从 Google Workspace 插件向 Google 表格添加自定义 function? - How to add a custom function to Google Sheets from a Google Workspace add-on? 如何创建一个每小时运行一次的基于时间的附加触发器? - How do I create a timeBased Add-on trigger that runs every hour?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM