[英]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.