gpt4 book ai didi

java - 未过期的谷歌日历api channel java

转载 作者:行者123 更新时间:2023-12-05 07:59:05 25 4
gpt4 key购买 nike

如何让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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com