【发布时间】:2020-11-24 12:36:47
【问题描述】:
请问是否有人可以确认使用日历事件手表 api 设置推送通知时的最长生存时间看起来只有一个月?
调用这个端点: https://www.googleapis.com/calendar/v3/calendars/blah@gmail.com/events/watch
使用此有效负载:
{
"id": "blah-014",
"token": "11223344",
"type": "web_hook",
"address": "https://blah.com/NotificationsFromGoogle_v1",
"params": {
"ttl": "157680000"
}
}
无论 ttl 值有多大(大于一个月),我总是会收到回复
"expiration": nnnnnnnnn, // 实际过期时间为 Unix 时间戳(以毫秒为单位),如果适用的话。
设置为最多提前一个月。
【问题讨论】:
标签: events push-notification google-calendar-api watch