我将我的CRM系统与Google日历同步。要做到这一点,我要求我的用户 push notifications 谷歌日历进入我的系统。我已经成功地创建了一个手表,并将过期时间设置为2030,但是当我收到来自watch事件的响应时,它会显示该手表的过期时间设置为一个月。
push notifications
问题:
我的守则:
$channel = new Google_Service_Calendar_Channel($client); $uuid = gen_uuid(); $channel->setId($uuid); $channel->setType('web_hook'); $channel->setExpiration('1919995862000'); $address = $sugar_config['site_url'] . "/index.php?entryPoint=updateFromCal"; $channel->setAddress($address); $watchEvent = $service->events->watch($bean->google_cal_id_c, $channel);
答复:
[address] => [expiration] => 1417667348000 [id] => 87453668-b1fd-4468-beca-xxxxxxxxxxxx [kind] => api#channel [params] =>