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

标签 java google-calendar-api channel

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

相关文章:

php - 在 iOS 应用程序上进行身份验证后,在 PHP 服务器上获取 Google 日历事件

csv - 为一个 channel 使用多个接收器

concurrency - 重用 Go channel 会导致死锁

java - startActivityForResult 包含三个 Activity

php - Google 日历 API V3 更新事件

JavaScript 等待变量

go - 使用timer.Reset()的定时器示例不按描述工作

java - 未经授权获取 field 详细信息(Foursquare)

Java HTTP 代理

java - 未处理的异常 java.io.iOException