Php 谷歌通知频道允许的最长过期时间是多少?

Php 谷歌通知频道允许的最长过期时间是多少?,php,push-notification,google-api,google-calendar-api,Php,Push Notification,Google Api,Google Calendar Api,我找不到任何回答这个问题的文档。具体来说,我使用的是日历API: 我知道过期时间应该是从EPOCH开始经过的毫秒数。目前,我让它在一周内到期,但我希望它更长-尽可能长 $chan = new Google_Service_Calendar_Channel(); $chan->setId($channel_id); $chan->setToken("blahblahblah"); $chan->setType("web_hook"); $chan->setAddress("

我找不到任何回答这个问题的文档。具体来说,我使用的是日历API:

我知道过期时间应该是从EPOCH开始经过的毫秒数。目前,我让它在一周内到期,但我希望它更长-尽可能长

$chan = new Google_Service_Calendar_Channel();
$chan->setId($channel_id);
$chan->setToken("blahblahblah");
$chan->setType("web_hook");
$chan->setAddress("https://www.mydomain.com/catchPush/");
$chan->setExpiration(strtotime("+1 week")*1000);
$watch = $cal_client->events->watch($calendar_id, $chan);

最大TTL似乎为一个月

尝试将过期时间设置为一年,并在结果中监视Google返回的过期时间