如何让google calendar Channel不会过期?在文档中说“如果 channel 有过期时间”,则意味着它可以没有过期时间。但是每次我创建一个 channel 时,它总是默认给我一周的过期时间。
谢谢。
最佳答案
遗憾的是,文档在这一点上仍然模棱两可。 current doc说:
A notification channel can have an expiration time, with a value determined either by your request or by any Google Calendar API internal limits or defaults (the more restrictive value is used)
似乎实际发生的情况是每个通知 channel 都有一个过期时间,因此 API 不支持创建一个没有过期时间的通知 channel 。
换句话说,您必须通过在 channel 过期之前刷新 channel 来自己实现
关于java - 未过期的谷歌日历api channel java,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23074373/