【发布时间】:2016-05-03 19:33:05
【问题描述】:
我们可以添加日期时间过滤器以从谷歌日历中获取事件
require_once '../../src/Google_Client.php';
require_once '../../src/contrib/Google_CalendarService.php';
$client = new Google_Client();
$client->setApplicationName("xxxx");
$client->setClientId('xxxxxxx');
$client->setClientSecret('1Z1Wd1M18yF3LXMVVPqoZA9S');
$client->setRedirectUri('xxxxxx');
$client->setDeveloperKey('<key>');
$cal = new Google_CalendarService($client);
$events = $cal->events->listEvents('<calender_id>');
var_dump($events);
【问题讨论】:
-
你试过使用timeMin和timeMax吗?
标签: php google-api google-calendar-api